PHP Класс eZ\Publish\Core\Persistence\Cache\CacheServiceDecorator

Wraps the Cache Service for Spi cache to apply key prefix for the cache
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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