Zend Framework
1.12
|
Public Member Functions | |
__construct (array $options=array()) | |
Constructor. | |
load ($id, $doNotTestCacheValidity=false) | |
Test if a cache is available for the given id and (if yes) return it (false else) | |
test ($id) | |
Test if a cache is available or not (for the given id) | |
save ($data, $id, $tags=array(), $specificLifetime=false) | |
Save some string datas into a cache record. | |
remove ($id) | |
Remove a cache record. | |
clean ($mode=Zend_Cache::CLEANING_MODE_ALL, $tags=array()) | |
Clean some cache records. | |
isAutomaticCleaningAvailable () | |
Return true if the automatic cleaning is available for the backend. | |
![]() | |
__construct (array $options=array()) | |
Constructor. | |
setDirectives ($directives) | |
Set the frontend directives. | |
setOption ($name, $value) | |
Set an option. | |
getOption ($name) | |
Returns an option. | |
getLifetime ($specificLifetime) | |
Get the life time. | |
isAutomaticCleaningAvailable () | |
Return true if the automatic cleaning is available for the backend. | |
getTmpDir () | |
Determine system TMP directory and detect if we have read access. | |
![]() | |
setDirectives ($directives) | |
Set the frontend directives. | |
Public Attributes | |
const | TAGS_UNSUPPORTED_BY_CLEAN_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::clean() : tags are unsupported by the Xcache backend' |
Log message. | |
const | TAGS_UNSUPPORTED_BY_SAVE_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::save() : tags are unsupported by the Xcache backend' |
Protected Attributes | |
$_options | |
![]() | |
$_directives | |
$_options = array() | |
Additional Inherited Members | |
![]() | |
_isGoodTmpDir ($dir) | |
Verify if the given temporary directory is readable and writable. | |
_loggerSanity () | |
Make sure if we enable logging that the Zend_Log class is available. | |
_log ($message, $priority=4) | |
Log a message at the WARN (4) priority. | |
__construct | ( | array | $options = array() | ) |
Constructor.
array | $options | associative array of options |
Zend_Cache_Exception |
clean | ( | $mode = Zend_Cache::CLEANING_MODE_ALL , |
|
$tags = array() |
|||
) |
Clean some cache records.
Available modes are : 'all' (default) => remove all cache entries ($tags is not used) 'old' => unsupported 'matchingTag' => unsupported 'notMatchingTag' => unsupported 'matchingAnyTag' => unsupported
string | $mode | clean mode |
array | $tags | array of tags |
Zend_Cache_Exception |
Implements Zend_Cache_Backend_Interface.
isAutomaticCleaningAvailable | ( | ) |
Return true if the automatic cleaning is available for the backend.
load | ( | $id, | |
$doNotTestCacheValidity = false |
|||
) |
Test if a cache is available for the given id and (if yes) return it (false else)
WARNING $doNotTestCacheValidity=true is unsupported by the Xcache backend
string | $id | cache id |
boolean | $doNotTestCacheValidity | if set to true, the cache validity won't be tested |
Implements Zend_Cache_Backend_Interface.
remove | ( | $id | ) |
Remove a cache record.
string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
save | ( | $data, | |
$id, | |||
$tags = array() , |
|||
$specificLifetime = false |
|||
) |
Save some string datas into a cache record.
Note : $data is always "string" (serialization is done by the core not by the backend)
string | $data | datas to cache |
string | $id | cache id |
array | $tags | array of strings, the cache record will be tagged by each string entry |
int | $specificLifetime | if != false, set a specific lifetime for this cache record (null => infinite lifetime) |
Implements Zend_Cache_Backend_Interface.
test | ( | $id | ) |
Test if a cache is available or not (for the given id)
string | $id | cache id |
Implements Zend_Cache_Backend_Interface.
|
protected |
const TAGS_UNSUPPORTED_BY_CLEAN_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::clean() : tags are unsupported by the Xcache backend' |
Log message.
const TAGS_UNSUPPORTED_BY_SAVE_OF_XCACHE_BACKEND = 'Zend_Cache_Backend_Xcache::save() : tags are unsupported by the Xcache backend' |