Public Member Functions | |
load ($id, $doNotTestCacheValidity=false) | |
test ($id) | |
save ($data, $id, $tags=array(), $specificLifetime=false) | |
remove ($id) | |
clean ($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array()) | |
Protected Member Functions | |
_store ($data, $id, $timeToLive) | |
_fetch ($id) | |
_unset ($id) | |
_clear () | |
Protected Attributes | |
$_options |
Definition at line 37 of file ZendServer.php.
_clear | ( | ) | [abstract, protected] |
Clear cache
Reimplemented in Zend_Cache_Backend_ZendServer_Disk, and Zend_Cache_Backend_ZendServer_ShMem.
_fetch | ( | $ | id ) | [abstract, protected] |
Fetch data
string | $id | Cache id |
Zend_Cache_Exception |
Reimplemented in Zend_Cache_Backend_ZendServer_Disk, and Zend_Cache_Backend_ZendServer_ShMem.
_store | ( | $ | data, |
$ | id, | ||
$ | timeToLive | ||
) | [abstract, protected] |
Store data
mixed | $data | Object to store |
string | $id | Cache id |
int | $timeToLive | Time to live in seconds |
Zend_Cache_Exception |
Reimplemented in Zend_Cache_Backend_ZendServer_Disk, and Zend_Cache_Backend_ZendServer_ShMem.
_unset | ( | $ | id ) | [abstract, protected] |
Unset data
string | $id | Cache id |
Reimplemented in Zend_Cache_Backend_ZendServer_Disk, and Zend_Cache_Backend_ZendServer_ShMem.
clean | ( | $ | mode = Zend_Cache::CLEANING_MODE_ALL , |
$ | tags = array() |
||
) |
Clean some cache records
Available modes are : 'all' (default) => remove all cache entries ($tags is not used) 'old' => unsupported 'matchingTag' => unsupported 'notMatchingTag' => unsupported 'matchingAnyTag' => unsupported
string | $mode | clean mode |
array | $tags | array of tags |
Zend_Cache_Exception |
Implements Zend_Cache_Backend_Interface.
Definition at line 186 of file ZendServer.php.
load | ( | $ | id, |
$ | doNotTestCacheValidity = false |
||
) |
Test if a cache is available for the given id and (if yes) return it (false else)
string | $id | cache id |
boolean | $doNotTestCacheValidity | if set to true, the cache validity won't be tested |
Implements Zend_Cache_Backend_Interface.
Definition at line 88 of file ZendServer.php.
remove | ( | $ | id ) |
Remove a cache record
string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
Definition at line 163 of file ZendServer.php.
save | ( | $ | data, |
$ | id, | ||
$ | tags = array() , |
||
$ | specificLifetime = false |
||
) |
Save some string datas into a cache record
Note : $data is always "string" (serialization is done by the core not by the backend)
string | $data | datas to cache |
string | $id | cache id |
array | $tags | array of strings, the cache record will be tagged by each string entry |
int | $specificLifetime | if != false, set a specific lifetime for this cache record (null => infinite lifetime) |
Implements Zend_Cache_Backend_Interface.
Definition at line 141 of file ZendServer.php.
test | ( | $ | id ) |
Test if a cache is available or not (for the given id)
string | $id | cache id |
Zend_Cache_Exception |
Implements Zend_Cache_Backend_Interface.
Definition at line 104 of file ZendServer.php.
$_options [protected] |
array( 'namespace' => 'zendframework' )
Reimplemented from Zend_Cache_Backend.
Definition at line 47 of file ZendServer.php.