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 |
___expire(string $id)
Force a cache record to expire
string
Cache id
__construct(array $options = array()
) : void
inherited_from | \Zend_Cache_Backend::__construct() |
---|
array
Associative array of options
\Zend_cache_Exception |
---|
__construct(array $options = array()
)
array
Associative array of options
__destruct() : void
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 problemgetCapabilities() : 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() |
---|
\Zend_Cache_Exception |
---|
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)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 timegetMetadatas(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
deprecated |
---|
boolean
load(string $id, boolean $doNotTestCacheValidity = false
) : string | false
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)
\Zend_Cache_Exception |
---|
boolean
True if no problemsetDirectives(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
string
Cache id
mixed
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 |
---|
_automaticVacuum() : void
_buildStructure() : false
false
_checkAndBuildStructure() : boolean
\Zend_Cache_Exception |
---|
boolean
True if ok_checkStructureVersion() : boolean
boolean
True if ok_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 problem_getConnection() : resource
If we are not connected, the connection is made
\Zend_Cache_Exception |
---|
resource
Connection resource_query(string $query) : mixed | false
string
SQL query
mixed
false
query results_registerTag(string $id, string $tag) : boolean
string
Cache id
string
Tag
boolean
True if no problem$_directives : array
array('lifetime' => 3600, 'logging' => false, 'logger' => null)
=====> (int) lifetime :
=====> (int) logging :
$_db : mixed
null
$_structureChecked : boolean
false