package | Zend_Cache |
---|---|
subpackage | Zend_Cache_Backend |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
inherited_from | \Zend_Cache_Backend |
__construct(array $options = array()
)
array
Associative array of options
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)
inherited_from | \Zend_Cache_Backend_Interface::clean() |
---|
string
Clean mode
array
Array of tags
\Zend_Exception |
---|
boolean
true if no problemgetInnerCache() : \Zend_Cache_Core
\Zend_Cache_Core
getLifetime(integer $specificLifetime) : integer
if $specificLifetime is not false, the given specific life time is used else, the global lifetime is used
integer
integer
Cache life timegetOption(string $name) : mixed
inherited_from | \Zend_Cache_Backend::getOption() |
---|
string
mixed
getOption(string $name) : mixed
string
Optional, the options name to return
\Zend_Cache_Exceptions |
---|
mixed
getTmpDir() : string
inspired from Zend_File_Transfer_Adapter_Abstract
\Zend_Cache_Exception |
if unable to determine directory |
---|
string
isAutomaticCleaningAvailable() : boolean
DEPRECATED : use getCapabilities() instead
deprecated |
---|
boolean
load(string $id, boolean $doNotTestCacheValidity = false
) : string | false
Note : return value is always "string" (unserialization is done by the core not by the backend)
inherited_from | \Zend_Cache_Backend_Interface::load() |
---|
string
Cache id
boolean
If set to true, the cache validity won't be tested
string
false
cached datasremove(string $id) : boolean
inherited_from | \Zend_Cache_Backend_Interface::remove() |
---|
string
Cache id
boolean
True if no problemremoveRecursively(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)
inherited_from | \Zend_Cache_Backend_Interface::save() |
---|
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) : void
array
Assoc of directives
\Zend_Cache_Exception |
---|
setInnerCache(\Zend_Cache_Core $cache) : void
setOption(string $name, mixed $value) : \Zend_Cache_Backend_Static
inherited_from | \Zend_Cache_Backend::setOption() |
---|
string
mixed
\Zend_Cache_Backend_Static
setOption(string $name, mixed $value) : void
string
mixed
\Zend_Cache_Exception |
---|
test(string $id) : boolean
inherited_from | \Zend_Cache_Backend_Interface::test() |
---|
string
cache id
boolean
_createDirectoriesFor($path)
_decodeId(string $id) : string
string
string
_detectId() : string
string
_isGoodTmpDir(string $dir) : boolean
string
temporary directory
boolean
true if the directory is ok_isSerialized($data)
In future, ZF 2.0, check if we can just avoid the interface restraints.
This format is the only valid one possible for the class, so it's simple to just run a regular expression for the starting serialized format.
_log(string $message, integer $priority = 4
) : void
string
integer
_loggerSanity() : void
Create a default log object if none is set.
\Zend_Cache_Exception |
---|
_octdec(string $val) : integer
string
The potential octal in need of conversion
integer
_validateIdOrTag(string $string) : void
..)
Throw an exception if a problem is found
deprecated | Not usable until perhaps ZF 2.0 |
---|
string
Cache id or tag
\Zend_Cache_Exception |
---|
_verifyPath(string $path) : boolean
string
boolean
$_directives : array
array('lifetime' => 3600, 'logging' => false, 'logger' => null)
=====> (int) lifetime :
=====> (int) logging :
$_tagCache : \Zend_Cache_Core
null
$_tagged : array
null
INNER_CACHE_NAME = 'zend_cache_backend_static_tagcache'