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()
) : void
inherited_from | \Zend_Cache_Backend::__construct() |
---|
array
associative array of options
__construct(array $options = array()
)
array
Associative array of options
clean(string $mode= \Zend_Cache::CLEANING_MODE_ALL
, array $tags= array()
) : boolean
For this test backend only, if $mode == 'false', then the method will return false (true else)
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)
string
Clean mode
array
Array of tags
boolean
True if no problemgetAllLogs() : array
array
Complete log arraygetCapabilities() : array
The array must include these keys :
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getCapabilities() |
---|
array
associative of with capabilitiesgetFillingPercentage() : integer
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getFillingPercentage() |
---|
integer
integer between 0 and 100getIds() : array
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getIds() |
---|
array
array of stored cache ids (string)getIdsMatchingAnyTags(array $tags = array()
) : array
In case of multiple tags, a logical AND is made between tags
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getIdsMatchingAnyTags() |
---|
array
array of tags
array
array of any matching cache ids (string)getIdsMatchingTags(array $tags = array()
) : array
In case of multiple tags, a logical AND is made between tags
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getIdsMatchingTags() |
---|
array
array of tags
array
array of matching cache ids (string)getIdsNotMatchingTags(array $tags = array()
) : array
In case of multiple tags, a logical OR is made between tags
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getIdsNotMatchingTags() |
---|
array
array of tags
array
array of not matching cache ids (string)getLastLog() : string
string
The last loggetLifetime(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 timegetLogIndex() : integer
integer
Log indexgetMetadatas(string $id) : array
The array must include these keys :
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getMetadatas() |
---|
string
cache id
array
array of metadatas (false if the cache id is not found)getOption(string $name) : mixed
string
Optional, the options name to return
\Zend_Cache_Exceptions |
---|
mixed
getTags() : array
inherited_from | \Zend_Cache_Backend_ExtendedInterface::getTags() |
---|
array
array of stored tags (string)getTmpDir() : string
inspired from Zend_File_Transfer_Adapter_Abstract
\Zend_Cache_Exception |
if unable to determine directory |
---|
string
isAutomaticCleaningAvailable() : boolean
DEPRECATED : use getCapabilities() instead
inherited_from | \Zend_Cache_Backend::isAutomaticCleaningAvailable() |
---|
boolean
isAutomaticCleaningAvailable() : boolean
DEPRECATED : use getCapabilities() instead
deprecated |
---|
boolean
load(string $id, boolean $doNotTestCacheValidity = false
) : string
For this test backend only, if $id == 'false', then the method will return false if $id == 'serialized', the method will return a serialized array ('foo' else)
string
Cache id
boolean
If set to true, the cache validity won't be tested
string
Cached datas (or false)remove(string $id) : boolean
For this test backend only, if $id == 'false', then the method will return false (true else)
string
Cache id
boolean
True if no problemsave(string $data, string $id, array $tags= array()
, integer $specificLifetime= false
) : boolean
For this test backend only, if $id == 'false', then the method will return false (true else)
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
inherited_from | \Zend_Cache_Backend::setDirectives() |
---|
array
assoc of directives
setDirectives(array $directives) : void
array
Assoc of directives
\Zend_Cache_Exception |
---|
setOption(string $name, mixed $value) : void
string
mixed
\Zend_Cache_Exception |
---|
test(string $id) : mixed | false
For this test backend only, if $id == 'false', then the method will return false (123456 else)
string
Cache id
mixed
false
false (a cache is not available) or "last modified" timestamp (int) of the available cache recordtouch(string $id, integer $extraLifetime) : boolean
inherited_from | \Zend_Cache_Backend_ExtendedInterface::touch() |
---|
string
cache id
integer
boolean
true if ok_isGoodTmpDir(string $dir) : boolean
string
temporary directory
boolean
true if the directory is ok_log(string $message, integer $priority = 4
) : void
string
integer
_loggerSanity() : void
Create a default log object if none is set.
\Zend_Cache_Exception |
---|
_addLog(string $methodName, array $args) : void
string
MethodName
array
Arguments
$_directives : array
array()
=====> (int) lifetime :
=====> (int) logging :
inherited_from | \Zend_Cache_Backend::_directives |
---|
$_directives : array
array('lifetime' => 3600, 'logging' => false, 'logger' => null)
=====> (int) lifetime :
=====> (int) logging :
$_index : integer
0
$_log : array
array()