PHP Class eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator

Wraps the Cache Service for Spi cache to apply key prefix for the cache
Afficher le fichier Open project: ezsystems/ezpublish-kernel Class Usage Examples

Protected Properties

Свойство Type Description
$cachePool Stash\Interfaces\PoolInterface

Méthodes publiques

Méthode Description
__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.

Private Methods

Méthode Description
washKey ( string $key ) : string Remove slashes from start and end of keys, and for content replace it with _ to avoid issues for Stash.

Method Details

__construct() public méthode

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

clear() public méthode

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() public méthode

{@see \Psr\Cache\CacheItemPoolInterface}
public getItem ( ) : Stash\Interfaces\ItemInterface
Résultat Stash\Interfaces\ItemInterface

getItems() public méthode

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

Property Details

$cachePool protected_oe property

protected PoolInterface,Stash\Interfaces $cachePool
Résultat Stash\Interfaces\PoolInterface