Skip to content

TaggableCacheItem

An item that supports tags. This interface is a soon-to-be-PSR.

Methods

getPreviousTags

Get all existing tags. These are the tags the item has when the item is returned from the pool.

public getPreviousTags(): array

setTags

Overwrite all tags with a new set of tags.

public setTags(string[] $tags): \Qubus\Cache\Psr6\TaggableCacheItem

Parameters:

Parameter Type Description
$tags string[] An array of tags

Throws:

When a tag is not valid.



Automatically generated on 2025-10-13