TagAwareAdapter
class TagAwareAdapter implements TagAwareAdapterInterface, PruneableInterface, ResettableInterface
Свойства
| ProxyTrait |
Константы
| TAGS_PREFIX |
Методы
| prune() {@inheritdoc} | из ProxyTrait | |
| reset() {@inheritdoc} | из ProxyTrait | |
| __construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null, float $knownTagVersionsTtl = 0.15) | ||
| bool | invalidateTags(array $tags) Отменяет кешированные элементы, используя теги. | |
| hasItem($key) {@inheritdoc} | ||
| CacheItem | getItem($key) {@inheritdoc} | |
| Traversable|CacheItem[] | getItems(array $keys = array()) {@inheritdoc} | |
| clear() {@inheritdoc} | ||
| deleteItem($key) {@inheritdoc} | ||
| deleteItems(array $keys) {@inheritdoc} | ||
| save(CacheItemInterface $item) {@inheritdoc} | ||
| saveDeferred(CacheItemInterface $item) {@inheritdoc} | ||
| commit() {@inheritdoc} | ||
| __destruct() |
Подробности
prune()
{@inheritdoc}
reset()
{@inheritdoc}
__construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null, float $knownTagVersionsTtl = 0.15)
Параметры
| AdapterInterface | $itemsPool | |
| AdapterInterface | $tagsPool | |
| float | $knownTagVersionsTtl |
bool invalidateTags(array $tags)
Отменяет кешированные элементы, используя теги.
Параметры
| array | $tags | Массив тегов для отмены |
Возвращаемое значение
| bool | True при успехе |
Исключения
| InvalidArgumentException | Если $tags некорректен |
hasItem($key)
{@inheritdoc}
Параметры
| $key |
CacheItem getItem($key)
{@inheritdoc}
Параметры
| $key |
Возвращаемое значение
| CacheItem |
Traversable|CacheItem[] getItems(array $keys = array())
{@inheritdoc}
Параметры
| array | $keys |
Возвращаемое значение
| Traversable|CacheItem[] |
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}
__destruct()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Adapter/TagAwareAdapter.html