Свойство | Тип | Описание | |
---|---|---|---|
$db | Zend_Db_Adapter_Abstract |
Метод | Описание | |
---|---|---|
clean ( string $mode = Zend_Cache::CLEANING_MODE_ALL, array $tags = [] ) : boolean | Clean some cache records | |
getCapabilities ( ) : array | ||
getFillingPercentage ( ) : integer | Return the filling percentage of the backend storage | |
getIds ( ) | ||
getIdsMatchingAnyTags ( array $tags = [] ) : array | ||
getIdsMatchingTags ( array $tags = [] ) : array | ||
getIdsNotMatchingTags ( $tags = [] ) | ||
getMetadatas ( $id ) | ||
getTags ( ) : array | Return an array of stored tags | |
load ( string $id, boolean $doNotTestCacheValidity = false ) : false | null | string | ||
remove ( string $id ) : boolean | ||
save ( string $data, string $id, array $tags = [], integer $specificLifetime = false ) : boolean | Save some string datas into a cache record | |
test ( $id ) | ||
touch ( string $id, integer $extraLifetime ) : boolean | Give (if possible) an extra lifetime to the given cache id |
Метод | Описание | |
---|---|---|
getDb ( ) : Zend_Db_Adapter_Abstract | ||
getItemsByTag ( string $tag ) : array | ||
getTagsById ( string $id ) : array | ||
truncate ( ) |
protected getDb ( ) : Zend_Db_Adapter_Abstract | ||
Результат | Zend_Db_Adapter_Abstract |
public getFillingPercentage ( ) : integer | ||
Результат | integer | integer between 0 and 100 |
public getIdsMatchingAnyTags ( array $tags = [] ) : array | ||
$tags | array | |
Результат | array |
public getIdsMatchingTags ( array $tags = [] ) : array | ||
$tags | array | |
Результат | array |
protected getItemsByTag ( string $tag ) : array | ||
$tag | string | |
Результат | array |
protected getTagsById ( string $id ) : array | ||
$id | string | |
Результат | array | tags for given id |
public save ( string $data, string $id, array $tags = [], integer $specificLifetime = false ) : boolean | ||
$data | string | Datas to cache |
$id | string | Cache id |
$tags | array | Array of strings, the cache record will be tagged by each string entry |
$specificLifetime | integer | If != false, set a specific lifetime for this cache record (null => infinite lifetime) |
Результат | boolean | True if no problem |