PHP 트레잇 Cache\Hierarchy\HierarchicalCachePoolTrait

저자: Tobias Nyholm ([email protected])
파일 보기 프로젝트 열기: php-cache/cache

보호된 메소드들

메소드 설명
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