TagAwareAdapterInterface
interface TagAwareAdapterInterface implements AdapterInterface
Interface for invalidating cached items using tags.
Methods
| CacheItem | getItem($key) {@inheritdoc} | from AdapterInterface |
| Traversable|CacheItem[] | getItems(array $keys = array()) {@inheritdoc} | from AdapterInterface |
| bool | invalidateTags(array $tags) Invalidates cached items using tags. |
Details
CacheItem getItem($key)
{@inheritdoc}
Parameters
| $key |
Return Value
| CacheItem |
Traversable|CacheItem[] getItems(array $keys = array())
{@inheritdoc}
Parameters
| array | $keys |
Return Value
| Traversable|CacheItem[] |
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 |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Cache/Adapter/TagAwareAdapterInterface.html