| Package | Zend_Cache |
| Subpackage | Zend_Cache_Backend |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |

class Zend_Cache_Backend_Test extends Zend_Cache_Backend implements Zend_Cache_Backend_Interface
| Package | Zend_Cache |
| Subpackage | Zend_Cache_Backend |
| Copyright | Copyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com) |
| License | http://framework.zend.com/license/new-bsd New BSD License |
| # $_directives | Frontend or Core directives |
| - $_index | Current index for log array |
| - $_log | Array to log actions |
| # $_options | Available options |
| + __construct() | Constructor |
| - _addLog() | Add an event to the log array |
| + clean() | Clean some cache records |
| + getAllLogs() | Get the complete log array |
| + getLastLog() | Get the last log |
| + getLogIndex() | Get the log index |
| + isAutomaticCleaningAvailable() | Return true if the automatic cleaning is available for the backend |
| + load() | Test if a cache is available for the given id and (if yes) return it (false else) |
| + remove() | Remove a cache record |
| + save() | Save some string datas into a cache record |
| + setDirectives() | Set the frontend directives |
| + test() | Test if a cache is available or not (for the given id) |
protected $_directives = array()private $_index = 0private $_log = array()protected $_options = array()
public function __construct( |
$options = array())
|
array $options |
associative array of options |
private function _addLog( |
$methodName)
|
string $methodName |
MethodName |
array $args |
Arguments |
public function clean( |
$mode = Zend_Cache::CLEANING_MODE_ALL)
|
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 tagsZend_Cache::CLEANING_MODE_NOT_MATCHING_TAG => remove cache entries not {matching one of the given tags}string $mode |
Clean mode |
array $tags |
Array of tags |
public function getAllLogs( |
)
|
public function getLastLog( |
)
|
public function getLogIndex( |
)
|
public function isAutomaticCleaningAvailable( |
)
|
public function load( |
$id)
|
string $id |
Cache id |
boolean $doNotTestCacheValidity |
If set to true, the cache validity won't be tested |
public function remove( |
$id)
|
string $id |
Cache id |
public function save( |
$data)
|
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) |
public function setDirectives( |
$directives)
|
array $directives |
assoc of directives |
public function test( |
$id)
|
string $id |
Cache id |