RedisTagSet
class RedisTagSet extends TagSet (View source)
Properties
protected Store | $store | The cache store implementation. |
from TagSet |
protected array | $names | The tag names. |
from TagSet |
Methods
Reset the tag and return the new tag identifier.
Flush the tag from the cache.
Get a unique namespace that changes when any of the tags are flushed.
Get the unique tag identifier for a given tag.
Get the tag identifier key for a given tag.
Add a reference entry to the tag set's underlying sorted set.
Get all of the cache entry keys for the tag set.
Remove the stale entries from the tag set.
Details
in
TagSet at line 30
void
__construct(Store $store, array $names = [])
Create a new TagSet instance.
in
TagSet at line 41
void
reset()
Reset all tags in the set.
string
resetTag(string $name)
Reset the tag and return the new tag identifier.
in
TagSet at line 64
void
flush()
Flush all the tags in the set.
flushTag(string $name)
Flush the tag from the cache.
in
TagSet at line 84
string
getNamespace()
Get a unique namespace that changes when any of the tags are flushed.
in
TagSet at line 94
protected array
tagIds()
Get an array of tag identifiers for all of the tags in the set.
string
tagId(string $name)
Get the unique tag identifier for a given tag.
string
tagKey(string $name)
Get the tag identifier key for a given tag.
array
getNames()
Get all of the tag names in the set.
void
addEntry(string $key, int $ttl = 0, string $updateWhen = null)
Add a reference entry to the tag set's underlying sorted set.
LazyCollection
entries()
Get all of the cache entry keys for the tag set.
void
flushStaleEntries()
Remove the stale entries from the tag set.