PHP Трейт Cache\Hierarchy\HierarchicalCachePoolTrait

Автор: Tobias Nyholm ([email protected])
Показать файл Открыть проект

Защищенные методы

Метод Описание
clearHierarchyKeyCache ( ) Clear the cache for the keys.
getHierarchyKey ( string $key, &$pathKey = null ) : string Get a key to use with the hierarchy. If the key does not start with HierarchicalPoolInterface::SEPARATOR this will return an unalterered key. This function supports a tagged key. Ie "foo:bar".
getValueFormStore ( string $key ) : string | null Get a value form the store. This must not be an PoolItemInterface.

Приватные методы

Метод Описание
explodeKey ( $string ) : array This will take a hierarchy key ("|foo|bar") with tags ("|foo|bar!tagHash") and return an array with each level in the hierarchy appended with the tags. ["foo!tagHash", "bar!tagHash"].
isHierarchyKey ( string $key ) : boolean A hierarchy key MUST begin with the separator.

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

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

Clear the cache for the keys.
protected clearHierarchyKeyCache ( )

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

Get a key to use with the hierarchy. If the key does not start with HierarchicalPoolInterface::SEPARATOR this will return an unalterered key. This function supports a tagged key. Ie "foo:bar".
protected getHierarchyKey ( string $key, &$pathKey = null ) : string
$key string The original key
Результат string

getValueFormStore() абстрактный защищенный Метод

Get a value form the store. This must not be an PoolItemInterface.
abstract protected getValueFormStore ( string $key ) : string | null
$key string
Результат string | null