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
\Zend_Cache_Exception |
---|
__construct(array $options = array()
)
array
Associative array of options
clean(string $mode= \Zend_Cache::CLEANING_MODE_ALL
, array $tags= array()
) : boolean
Available modes are : 'all' (default) => remove all cache entries ($tags is not used) 'old' => unsupported 'matchingTag' => unsupported 'notMatchingTag' => unsupported 'matchingAnyTag' => unsupported
inherited_from | \Zend_Cache_Backend_Interface::clean() |
---|
string
clean mode
array
array of tags
\Zend_Cache_Exception |
---|
boolean
true if no problemgetLifetime(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
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
inherited_from | \Zend_Cache_Backend::isAutomaticCleaningAvailable() |
---|
boolean
isAutomaticCleaningAvailable() : boolean
DEPRECATED : use getCapabilities() instead
deprecated |
---|
boolean
load(string $id, boolean $doNotTestCacheValidity = false
) : string
WARNING $doNotTestCacheValidity=true is unsupported by the Xcache backend
inherited_from | \Zend_Cache_Backend_Interface::load() |
---|
string
cache id
boolean
if set to true, the cache validity won't be tested
string
cached datas (or false)remove(string $id) : boolean
inherited_from | \Zend_Cache_Backend_Interface::remove() |
---|
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 |
---|
setOption(string $name, mixed $value) : void
string
mixed
\Zend_Cache_Exception |
---|
test(string $id) : mixed
inherited_from | \Zend_Cache_Backend_Interface::test() |
---|
string
cache id
mixed
false (a cache is not available) or "last modified" timestamp (int) of the available cache record_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 |
---|
$_directives : array
array('lifetime' => 3600, 'logging' => false, 'logger' => null)
=====> (int) lifetime :
=====> (int) logging :
TAGS_UNSUPPORTED_BY_CLEAN_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::clean() : tags are unsupported by the Xcache backend'
TAGS_UNSUPPORTED_BY_SAVE_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::save() : tags are unsupported by the Xcache backend'