Impementation of Zend Cache Backend using the Zend Platform (Output Content Caching)
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 : 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) This mode is not supported in this backend 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 => unsupported 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_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 data (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
Data 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 | false
inherited_from | \Zend_Cache_Backend_Interface::test() |
---|
string
Cache id
mixed
false
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 |
---|
_clean(string $dir, string $mode) : boolean
Remove all the cached files that need to be cleaned (according to mode and files mtime)
string
Path of directory ot clean
string
The same parameter as in Zend_Cache_Backend_ZendPlatform::clean()
boolean
True if ok_remove(string $file) : boolean
If we can't remove the file (because of locks or any problem), we will touch the file to invalidate it
string
Complete file path
boolean
True if ok$_directives : array
array('lifetime' => 3600, 'logging' => false, 'logger' => null)
=====> (int) lifetime :
=====> (int) logging :
TAGS_PREFIX = "internal_ZPtag:"