Spec-Zone.ru › Symfony 4.1

ChainCache

class ChainCache implements CacheInterface, PruneableInterface, ResettableInterface

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

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

Методы

__construct(array $caches, int $defaultLifetime = 0)
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 = 0)

Параметры

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.
https://api.symfony.com/4.1/Symfony/Component/Cache/Simple/ChainCache.html

Spec-Zone.ru

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