VersionedTagSet
class VersionedTagSet extends NamespacedTagSet
Generic namespaced tag set for stores without a native tag index.
Each tag's identifier is a random value stored in the cache itself; resetting a tag rotates the identifier, which changes the namespace and lets previously tagged entries expire naturally.
Properties
| protected Store | $store | The cache store implementation. |
from TagSet |
| protected array | $names | The tag names. |
from TagSet |
Methods
Reset all tags in the set.
Flush all the tags in the set.
Get a unique namespace that changes when any of the tags are flushed.
Get an array of tag identifiers for all of the tags in the set.
Get the unique tag identifier for a given tag.
Get the tag identifier key for a given tag.
Reset the tag and return the new tag identifier.
Flush the tag from the cache.
Details
at line 19
void
reset()
Reset all tags in the set.
at line 37
void
flush()
Flush all the tags in the set.
in
TagSet at line 43
array
getNames()
Get all of the tag names in the set.
in
NamespacedTagSet at line 18
string
getNamespace()
Get a unique namespace that changes when any of the tags are flushed.
in
NamespacedTagSet at line 28
array
tagIds()
Get an array of tag identifiers for all of the tags in the set.
at line 55
string
tagId(string $name)
Get the unique tag identifier for a given tag.
at line 63
string
tagKey(string $name)
Get the tag identifier key for a given tag.
at line 27
string
resetTag(string $name)
Reset the tag and return the new tag identifier.
at line 45
string
flushTag(string $name)
Flush the tag from the cache.