Public Member Functions | |
__construct (array $options=array()) | |
load ($id, $doNotTestCacheValidity=false) | |
test ($id) | |
save ($data, $id, $tags=array(), $specificLifetime=false) | |
remove ($id) | |
clean ($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array()) | |
isAutomaticCleaningAvailable () | |
getFillingPercentage () | |
getTags () | |
getIdsMatchingTags ($tags=array()) | |
getIdsNotMatchingTags ($tags=array()) | |
getIdsMatchingAnyTags ($tags=array()) | |
getIds () | |
getMetadatas ($id) | |
touch ($id, $extraLifetime) | |
getCapabilities () | |
Data Fields | |
const | TAGS_UNSUPPORTED_BY_CLEAN_OF_APC_BACKEND = 'Zend_Cache_Backend_Apc::clean() : tags are unsupported by the Apc backend' |
const | TAGS_UNSUPPORTED_BY_SAVE_OF_APC_BACKEND = 'Zend_Cache_Backend_Apc::save() : tags are unsupported by the Apc backend' |
Definition at line 41 of file Apc.php.
__construct | ( | array $ | options = array() ) |
Constructor
array | $options | associative array of options |
Zend_Cache_Exception |
Reimplemented from Zend_Cache_Backend.
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.
getCapabilities | ( | ) |
Return an associative array of capabilities (booleans) of the backend
The array must include these keys :
Implements Zend_Cache_Backend_ExtendedInterface.
getFillingPercentage | ( | ) |
Return the filling percentage of the backend storage
Zend_Cache_Exception |
Implements Zend_Cache_Backend_ExtendedInterface.
getIds | ( | ) |
Return an array of stored cache ids
Implements Zend_Cache_Backend_ExtendedInterface.
getIdsMatchingAnyTags | ( | $ | tags = array() ) |
Return an array of stored cache ids which match any given tags
In case of multiple tags, a logical AND is made between tags
array | $tags | array of tags |
Implements Zend_Cache_Backend_ExtendedInterface.
getIdsMatchingTags | ( | $ | tags = array() ) |
Return an array of stored cache ids which match given tags
In case of multiple tags, a logical AND is made between tags
array | $tags | array of tags |
Implements Zend_Cache_Backend_ExtendedInterface.
getIdsNotMatchingTags | ( | $ | tags = array() ) |
Return an array of stored cache ids which don't match given tags
In case of multiple tags, a logical OR is made between tags
array | $tags | array of tags |
Implements Zend_Cache_Backend_ExtendedInterface.
getMetadatas | ( | $ | id ) |
Return an array of metadatas for the given cache id
The array must include these keys :
string | $id | cache id |
Implements Zend_Cache_Backend_ExtendedInterface.
getTags | ( | ) |
Return an array of stored tags
Implements Zend_Cache_Backend_ExtendedInterface.
isAutomaticCleaningAvailable | ( | ) |
Return true if the automatic cleaning is available for the backend
DEPRECATED : use getCapabilities() instead
Reimplemented from Zend_Cache_Backend.
load | ( | $ | id, |
$ | doNotTestCacheValidity = false |
||
) |
Test if a cache is available for the given id and (if yes) return it (false else)
WARNING $doNotTestCacheValidity=true is unsupported by the Apc backend
string | $id | cache id |
boolean | $doNotTestCacheValidity | if set to true, the cache validity won't be tested |
Implements Zend_Cache_Backend_Interface.
remove | ( | $ | id ) |
Remove a cache record
string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
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.
test | ( | $ | id ) |
Test if a cache is available or not (for the given id)
string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
touch | ( | $ | id, |
$ | extraLifetime | ||
) |
Give (if possible) an extra lifetime to the given cache id
string | $id | cache id |
int | $extraLifetime |
Implements Zend_Cache_Backend_ExtendedInterface.
const TAGS_UNSUPPORTED_BY_CLEAN_OF_APC_BACKEND = 'Zend_Cache_Backend_Apc::clean() : tags are unsupported by the Apc backend' |