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_ZendServer |
__construct(array $options = array()
)
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
deprecated |
---|
boolean
load(string $id, boolean $doNotTestCacheValidity = false
) : string
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
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
\Zend_Cache_Exception |
---|
mixed
false (a cache is not available) or "last modified" timestamp (int) of the available cache record_clear()
inherited_from | \Zend_Cache_Backend_ZendServer::_clear() |
---|
_clear()
_fetch(string $id) : mixed | null
inherited_from | \Zend_Cache_Backend_ZendServer::_fetch() |
---|
string
Cache id
mixed
null
_fetch(string $id)
string
Cache id
\Zend_Cache_Exception |
---|
_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 |
---|
_store(mixed $data, string $id, integer $timeToLive) : boolean
inherited_from | \Zend_Cache_Backend_ZendServer::_store() |
---|
mixed
Object to store
string
Cache id
integer
Time to live in seconds
boolean
_store(mixed $data, string $id, integer $timeToLive)
mixed
Object to store
string
Cache id
integer
Time to live in seconds
\Zend_Cache_Exception |
---|
_unset(string $id) : boolean
inherited_from | \Zend_Cache_Backend_ZendServer::_unset() |
---|
string
Cache id
boolean
true if no problem_unset(string $id)
string
Cache id
_expireTime($lifetime) : integer
integer
expire time (unix timestamp)$_directives : array
array('lifetime' => 3600, 'logging' => false, 'logger' => null)
=====> (int) lifetime :
=====> (int) logging :