PHP Класс Pimcore\Cache\Backend\MysqlTable

Наследование: extends Zend_Cache_Backend, implements Zend_Cache_Backend_ExtendedInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$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 ( )

Описание методов

clean() публичный Метод

Available modes are : 'all' (default) => remove all cache entries ($tags is not used) 'old' => remove too old cache entries ($tags is not used) 'matchingTag' => remove cache entries matching all given tags ($tags can be an array of strings or a single string) 'notMatchingTag' => remove cache entries not matching one of the given tags ($tags can be an array of strings or a single string)
public clean ( string $mode = Zend_Cache::CLEANING_MODE_ALL, array $tags = [] ) : boolean
$mode string Clean mode
$tags array Array of tags
Результат boolean True if no problem

getCapabilities() публичный Метод

public getCapabilities ( ) : array
Результат array

getDb() защищенный Метод

protected getDb ( ) : Zend_Db_Adapter_Abstract
Результат Zend_Db_Adapter_Abstract

getFillingPercentage() публичный Метод

Return the filling percentage of the backend storage
public getFillingPercentage ( ) : integer
Результат integer integer between 0 and 100

getIds() публичный Метод

public getIds ( )

getIdsMatchingAnyTags() публичный Метод

public getIdsMatchingAnyTags ( array $tags = [] ) : array
$tags array
Результат array

getIdsMatchingTags() публичный Метод

public getIdsMatchingTags ( array $tags = [] ) : array
$tags array
Результат array

getIdsNotMatchingTags() публичный Метод

public getIdsNotMatchingTags ( $tags = [] )

getItemsByTag() защищенный Метод

protected getItemsByTag ( string $tag ) : array
$tag string
Результат array

getMetadatas() публичный Метод

public getMetadatas ( $id )

getTags() публичный Метод

Return an array of stored tags
public getTags ( ) : array
Результат array array of stored tags (string)

getTagsById() защищенный Метод

protected getTagsById ( string $id ) : array
$id string
Результат array tags for given id

load() публичный Метод

public load ( string $id, boolean $doNotTestCacheValidity = false ) : false | null | string
$id string
$doNotTestCacheValidity boolean
Результат false | null | string

remove() публичный Метод

public remove ( string $id ) : boolean
$id string
Результат boolean true if OK

save() публичный Метод

Note : $data is always "string" (serialization is done by the core not by the backend)
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

test() публичный Метод

public test ( $id )

touch() публичный Метод

Give (if possible) an extra lifetime to the given cache id
public touch ( string $id, integer $extraLifetime ) : boolean
$id string cache id
$extraLifetime integer
Результат boolean true if ok

truncate() защищенный Метод

protected truncate ( )

Описание свойств

$db защищенное свойство

protected Zend_Db_Adapter_Abstract $db
Результат Zend_Db_Adapter_Abstract