PHP 클래스 eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator

Wraps the Cache Service for Spi cache to apply key prefix for the cache
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$cachePool Stash\Interfaces\PoolInterface

공개 메소드들

메소드 설명
__construct ( Stash\Interfaces\PoolInterface $cachePool ) Constructs the cache service decorator.
clear ( ) Clears the cache for the key, or if none is specified clears the entire cache. The key can be either a series of string arguments, or an array.
getItem ( ) : Stash\Interfaces\ItemInterface Prepend key with prefix and support array format Stash supported before.
getItems ( array $keys = [] ) : Stash\Interfaces\ItemInterface[] Prepend keys with prefix.

비공개 메소드들

메소드 설명
washKey ( string $key ) : string Remove slashes from start and end of keys, and for content replace it with _ to avoid issues for Stash.

메소드 상세

__construct() 공개 메소드

Constructs the cache service decorator.
public __construct ( Stash\Interfaces\PoolInterface $cachePool )
$cachePool Stash\Interfaces\PoolInterface

clear() 공개 메소드

Clears the cache for the key, or if none is specified clears the entire cache. The key can be either a series of string arguments, or an array.
public clear ( )

getItem() 공개 메소드

{@see \Psr\Cache\CacheItemPoolInterface}
public getItem ( ) : Stash\Interfaces\ItemInterface
리턴 Stash\Interfaces\ItemInterface

getItems() 공개 메소드

{@see \Psr\Cache\CacheItemPoolInterface}
public getItems ( array $keys = [] ) : Stash\Interfaces\ItemInterface[]
$keys array
리턴 Stash\Interfaces\ItemInterface[]

프로퍼티 상세

$cachePool 보호되어 있는 프로퍼티

protected PoolInterface,Stash\Interfaces $cachePool
리턴 Stash\Interfaces\PoolInterface