TagAwareAdapter
class TagAwareAdapter implements TagAwareAdapterInterface, PruneableInterface, ResettableInterface
Traits
ProxyTrait |
Constants
TAGS_PREFIX |
Methods
prune() {@inheritdoc} | from ProxyTrait | |
reset() {@inheritdoc} | from ProxyTrait | |
__construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null) | ||
bool | invalidateTags(array $tags) Invalidates cached items using tags. | |
hasItem($key) {@inheritdoc} | ||
CacheItem | getItem($key) {@inheritdoc} | |
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() |
Details
prune()
{@inheritdoc}
reset()
{@inheritdoc}
__construct(AdapterInterface $itemsPool, AdapterInterface $tagsPool = null)
Parameters
AdapterInterface | $itemsPool | |
AdapterInterface | $tagsPool |
bool invalidateTags(array $tags)
Invalidates cached items using tags.
Parameters
array | $tags | An array of tags to invalidate |
Return Value
bool | True on success |
Exceptions
InvalidArgumentException | When $tags is not valid |
hasItem($key)
{@inheritdoc}
Parameters
$key |
CacheItem getItem($key)
{@inheritdoc}
Parameters
$key |
Return Value
CacheItem |
getItems(array $keys = array())
{@inheritdoc}
return \Traversable|CacheItem[]
Parameters
array | $keys |
clear()
{@inheritdoc}
deleteItem($key)
{@inheritdoc}
Parameters
$key |
deleteItems(array $keys)
{@inheritdoc}
Parameters
array | $keys |
save(CacheItemInterface $item)
{@inheritdoc}
Parameters
CacheItemInterface | $item |
saveDeferred(CacheItemInterface $item)
{@inheritdoc}
Parameters
CacheItemInterface | $item |
commit()
{@inheritdoc}
__destruct()
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/4.0/Symfony/Component/Cache/Adapter/TagAwareAdapter.html