| 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_ZendPlatform 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 |
| TAGS_PREFIX | internal ZP prefix |
| + __construct() | Constructor |
| - _clean() | Clean a directory and recursivly go over it's subdirectories |
| - _remove() | Remove a file |
| + clean() | Clean some cache records |
| + 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 |
| + test() | Test if a cache is available or not (for the given id) |
public function __construct( |
array $options = array())
|
array $options |
Zend_Cache_Exception
private function _clean( |
$dir)
|
string $dir |
Path of directory ot clean |
string $mode |
The same parameter as in Zend_Cache_Backend_ZendPlatform::clean() |
private function _remove( |
$file)
|
string $file |
Complete file path |
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 => unsupportedZend_Cache::CLEANING_MODE_MATCHING_ANY_TAG => remove cache entries matching any given tagsstring $mode |
Clean mode |
array $tags |
Array of tags |
Zend_Cache_Exception
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 |
Data 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 test( |
$id)
|
string $id |
Cache id |