PHP Class Pimcore\Cache\Backend\Memcached

Deprecation:
Inheritance: extends Zend_Cache_Backend_Memcached
Afficher le fichier Open project: pimcore/pimcore

Protected Properties

Свойство Type Description
$checkedCacheConsistency boolean
$db Zend_Db_Adapter_Abstract

Méthodes publiques

Méthode Description
__construct ( array $options = [] )
clean ( string $mode = Zend_Cache::CLEANING_MODE_ALL, array $tags = [] ) : boolean Clean some cache records
getCapabilities ( ) : array
getIdsMatchingAnyTags ( array $tags = [] ) : array
getIdsMatchingTags ( array $tags = [] ) : array
load ( $id, boolean $doNotTestCacheValidity = false ) : void
remove ( string $id ) : boolean
save ( string $data, string $id, array $tags = [], integer $specificLifetime = false ) : boolean Save some string datas into a cache record

Méthodes protégées

Méthode Description
checkCacheConsistency ( ) : void
clearTags ( ) : void
getDb ( ) : Zend_Db_Adapter_Abstract
getItemsByTag ( string $tag ) : array
getTagsById ( string $id ) : array
saveTags ( string $id, array $tags ) : void

Method Details

__construct() public méthode

public __construct ( array $options = [] )
$options array

checkCacheConsistency() protected méthode

protected checkCacheConsistency ( ) : void
Résultat void

clean() public méthode

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
Résultat boolean True if no problem

clearTags() protected méthode

protected clearTags ( ) : void
Résultat void

getCapabilities() public méthode

public getCapabilities ( ) : array
Résultat array

getDb() protected méthode

protected getDb ( ) : Zend_Db_Adapter_Abstract
Résultat Zend_Db_Adapter_Abstract

getIdsMatchingAnyTags() public méthode

public getIdsMatchingAnyTags ( array $tags = [] ) : array
$tags array
Résultat array

getIdsMatchingTags() public méthode

public getIdsMatchingTags ( array $tags = [] ) : array
$tags array
Résultat array

getItemsByTag() protected méthode

protected getItemsByTag ( string $tag ) : array
$tag string
Résultat array

getTagsById() protected méthode

protected getTagsById ( string $id ) : array
$id string
Résultat array tags for given id

load() public méthode

public load ( $id, boolean $doNotTestCacheValidity = false ) : void
$id
$doNotTestCacheValidity boolean
Résultat void

remove() public méthode

public remove ( string $id ) : boolean
$id string
Résultat boolean true if OK

save() public méthode

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)
Résultat boolean True if no problem

saveTags() protected méthode

protected saveTags ( string $id, array $tags ) : void
$id string
$tags array
Résultat void

Property Details

$checkedCacheConsistency protected_oe property

protected bool $checkedCacheConsistency
Résultat boolean

$db protected_oe property

protected Zend_Db_Adapter_Abstract $db
Résultat Zend_Db_Adapter_Abstract