TaggableCacheItem
An item that supports tags. This interface is a soon-to-be-PSR.
- Full name:
\Qubus\Cache\Psr6\TaggableCacheItem
- Parent interfaces:
CacheItemInterface
Methods
getPreviousTags
Get all existing tags. These are the tags the item has when the item is returned from the pool.
setTags
Overwrite all tags with a new set of tags.
Parameters:
Parameter | Type | Description |
---|---|---|
$tags | string[] | An array of tags |
Throws:
When a tag is not valid.
Automatically generated on 2025-10-13