25 #require_once 'Zend/Cache/Backend/Interface.php'; 28 #require_once 'Zend/Cache/Backend.php'; 48 'namespace' =>
'zendframework' 79 abstract protected function _clear();
88 public function load(
$id, $doNotTestCacheValidity =
false)
106 $tmp = $this->
_fetch(
'internal-metadatas---' .
$id);
107 if ($tmp !==
false) {
108 if (!is_array($tmp) || !isset($tmp[
'mtime'])) {
111 return $tmp['mtime
']; 121 private function _expireTime($lifetime) 123 if ($lifetime === null) { 126 return time() + $lifetime; 141 public function save($data, $id, $tags = array(), $specificLifetime = false) 143 $lifetime = $this->getLifetime($specificLifetime); 146 'expire
' => $this->_expireTime($lifetime), 149 if (count($tags) > 0) { 153 return $this->_store($data, $id, $lifetime) && 154 $this->_store($metadatas, 'internal-metadatas---
' . $id, $lifetime); 163 public function remove($id) 165 $result1 = $this->_unset($id); 166 $result2 = $this->_unset('internal-metadatas---
' . $id); 168 return $result1 && $result2; 186 public function clean($mode = Zend_Cache::CLEANING_MODE_ALL, $tags = array()) 189 case Zend_Cache::CLEANING_MODE_ALL: 193 case Zend_Cache::CLEANING_MODE_OLD: 194 $this->_log("Zend_Cache_Backend_ZendServer::clean() : CLEANING_MODE_OLD is unsupported by the Zend Server backends."); 196 case Zend_Cache::CLEANING_MODE_MATCHING_TAG: 197 case Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG: 198 case Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG: 203 Zend_Cache::throwException('Invalid mode
for clean() method
'); save($data, $id, $tags=array(), $specificLifetime=false)
clean($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array())
load($id, $doNotTestCacheValidity=false)
_store($data, $id, $timeToLive)
static throwException($msg, Exception $e=null)