Spec-Zone.ru › Symfony 3.4

ChainAdapter

class ChainAdapter implements AdapterInterface, PruneableInterface, ResettableInterface

Цепочкой нескольких адаптеров.

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

Методы

__construct(array $adapters, int $maxLifetime)
CacheItem getItem($key)

{@inheritdoc}

getItems(array $keys = array())

{@inheritdoc}

hasItem($key)

{@inheritdoc}

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

deleteItems(array $keys)

{@inheritdoc}

save(CacheItemInterface $item)

{@inheritdoc}

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

commit()

{@inheritdoc}

bool prune()
reset()

Подробности

__construct(array $adapters, int $maxLifetime)

Параметры

array $adapters Упорядоченный список адаптеров, используемых для извлечения кэшированных элементов
int $maxLifetime Максимальное время жизни элементов, распространяемых от нижних адаптеров к верхним

CacheItem getItem($key)

{@inheritdoc}

Параметры

$key

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

CacheItem

getItems(array $keys = array())

{@inheritdoc}

return \Traversable|CacheItem[]

Параметры

array $keys

hasItem($key)

{@inheritdoc}

Параметры

$key

clear()

{@inheritdoc}

deleteItem($key)

{@inheritdoc}

Параметры

$key

deleteItems(array $keys)

{@inheritdoc}

Параметры

array $keys

save(CacheItemInterface $item)

{@inheritdoc}

Параметры

CacheItemInterface $item

saveDeferred(CacheItemInterface $item)

{@inheritdoc}

Параметры

CacheItemInterface $item

commit()

{@inheritdoc}

bool prune()

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

bool

reset()

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

Spec-Zone.ru

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