Spec-Zone.ru › Symfony 3.4

ChainCache

class ChainCache implements CacheInterface, PruneableInterface, ResettableInterface

Цепочкой нескольких кэшей.

Кешированные элементы извлекаются из первого кэша, содержащего их в своём хранилище. Они сохраняются и удаляются во всех кэшах одновременно.

Методы

__construct(array $caches, int $defaultLifetime)
get($key, $default = null)

{@inheritdoc}

getMultiple($keys, $default = null)

{@inheritdoc}

has($key)

{@inheritdoc}

clear()

{@inheritdoc}

delete($key)

{@inheritdoc}

deleteMultiple($keys)

{@inheritdoc}

set($key, $value, $ttl = null)

{@inheritdoc}

setMultiple($values, $ttl = null)

{@inheritdoc}

bool prune()
reset()

Подробности

__construct(array $caches, int $defaultLifetime)

Параметры

array $caches Отсортированный список кэшей, используемых для извлечения кешированных элементов
int $defaultLifetime Срок хранения элементов, распространяемых от нижних кэшей к верхним

get($key, $default = null)

{@inheritdoc}

Параметры

$key
$default

getMultiple($keys, $default = null)

{@inheritdoc}

Параметры

$keys
$default

has($key)

{@inheritdoc}

Параметры

$key

clear()

{@inheritdoc}

delete($key)

{@inheritdoc}

Параметры

$key

deleteMultiple($keys)

{@inheritdoc}

Параметры

$keys

set($key, $value, $ttl = null)

{@inheritdoc}

Параметры

$key
$value
$ttl

setMultiple($values, $ttl = null)

{@inheritdoc}

Параметры

$values
$ttl

bool prune()

Возвращаемое значение

bool

reset()

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.4/Symfony/Component/Cache/Simple/ChainCache.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API