package | Zend_Cache |
---|---|
subpackage | Zend_Cache_Backend |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
clean(string $mode= \Zend_Cache::CLEANING_MODE_ALL
, array $tags= array()
) : boolean
Available modes are : Zend_Cache::CLEANING_MODE_ALL (default) => remove all cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_OLD => remove too old cache entries ($tags is not used) Zend_Cache::CLEANING_MODE_MATCHING_TAG => remove cache entries matching all given tags ($tags can be an array of strings or a single string) Zend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not {matching one of the given tags} ($tags can be an array of strings or a single string) Zend_Cache::CLEANING_MODE_MATCHING_ANY_TAG => remove cache entries matching any given tags ($tags can be an array of strings or a single string)
string
Clean mode
array
Array of tags
boolean
true if no problemload(string $id, boolean $doNotTestCacheValidity = false
) : string | false
Note : return value is always "string" (unserialization is done by the core not by the backend)
string
Cache id
boolean
If set to true, the cache validity won't be tested
string
false
cached datasremove(string $id) : boolean
string
Cache id
boolean
True if no problemsave(string $data, string $id, array $tags= array()
, integer $specificLifetime= false
) : boolean
Note : $data is always "string" (serialization is done by the core not by the backend)
string
Datas to cache
string
Cache id
array
Array of strings, the cache record will be tagged by each string entry
integer
If != false, set a specific lifetime for this cache record (null => infinite lifetime)
boolean
true if no problemsetDirectives(array $directives)
array
assoc of directives
test(string $id) : mixed | false
string
cache id
mixed
false
(a cache is not available) or "last modified" timestamp (int) of the available cache record