AllTagSet
class AllTagSet extends NamespacedTagSet
Properties
| protected RedisStore | $store | The cache store implementation. |
|
| 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.
Add a reference entry to the tag set's underlying sorted set.
Get all of the cache entry keys for the tag set.
Reset the tag and return the new tag identifier.
Flush the tag from the cache.
Details
at line 44
void
reset()
Reset all tags in the set.
at line 62
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 81
string
tagId(string $name)
Get the unique tag identifier for a given tag.
Delegates to StoreContext which delegates to TagMode (single source of truth). Format: "_all:tag:{name}:entries"
at line 92
string
tagKey(string $name)
Get the tag identifier key for a given tag.
Same as tagId() - the identifier without cache prefix. Used with store->forget() which adds the prefix.
at line 28
void
addEntry(string $key, int $ttl = 0, string|null $updateWhen = null)
Add a reference entry to the tag set's underlying sorted set.
Not currently called internally — the combined operation classes (Put, Forever, Increment, etc.) handle tag tracking inline for single-checkout pool efficiency. Kept for Laravel RedisTagSet API parity.
at line 36
LazyCollection
entries()
Get all of the cache entry keys for the tag set.
at line 52
string
resetTag(string $name)
Reset the tag and return the new tag identifier.
at line 70
string
flushTag(string $name)
Flush the tag from the cache.