class AllTagSet extends NamespacedTagSet

Properties

protected RedisStore $store

The cache store implementation.

protected array $names

The tag names.

from  TagSet

Methods

__construct(Store $store, array $names = [])

Create a new TagSet instance.

from  TagSet
bool
reset()

Reset all tags in the set.

bool
flush()

Flush all the tags in the set.

bool
attemptEach(iterable $items, Closure $operation)

Attempt an operation for every item.

from  TagSet
array
getNames()

Get all of the tag names in the set.

from  TagSet
string
getNamespace()

Get a unique namespace that changes when any of the tags are flushed.

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.

void
addEntry(string $key, int $ttl = 0, string|null $updateWhen = null)

Add a reference entry to the tag set's underlying sorted set.

entries()

Get all of the cache entry keys for the tag set.

string
resetTag(string $name)

Reset the tag and return the new tag identifier.

string
flushTag(string $name)

Flush the tag from the cache.

Details

in TagSet at line 27
__construct(Store $store, array $names = [])

Create a new TagSet instance.

Parameters

Store $store
array $names

at line 44
bool reset()

Reset all tags in the set.

Return Value

bool

at line 69
bool flush()

Flush all the tags in the set.

Return Value

bool

in TagSet at line 51
protected bool attemptEach(iterable $items, Closure $operation)

Attempt an operation for every item.

Parameters

iterable $items
Closure $operation

Return Value

bool

in TagSet at line 78
array getNames()

Get all of the tag names in the set.

Return Value

array

in NamespacedTagSet at line 18
string getNamespace()

Get a unique namespace that changes when any of the tags are flushed.

Return Value

string

in NamespacedTagSet at line 28
array tagIds()

Get an array of tag identifiers for all of the tags in the set.

Return Value

array

at line 95
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"

Parameters

string $name

Return Value

string

at line 106
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.

Parameters

string $name

Return Value

string

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.

Parameters

string $key
int $ttl
string|null $updateWhen

Return Value

void

at line 36
LazyCollection entries()

Get all of the cache entry keys for the tag set.

Return Value

LazyCollection

at line 59
string resetTag(string $name)

Reset the tag and return the new tag identifier.

Parameters

string $name

Return Value

string

at line 84
string flushTag(string $name)

Flush the tag from the cache.

Parameters

string $name

Return Value

string