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

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

Create a new TagSet instance.

from  TagSet
void
reset()

Reset all tags in the set.

from  TagSet
string
resetTag(string $name)

Reset the tag and return the new tag identifier.

void
flush()

Flush all the tags in the set.

from  TagSet
flushTag(string $name)

Flush the tag from the cache.

string
getNamespace()

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

from  TagSet
array
tagIds()

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

from  TagSet
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.

from  TagSet
void
addEntry(string $key, int $ttl = null, string $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.

void
flushStaleEntries()

Remove the stale entries from the tag set.

Details

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

Create a new TagSet instance.

Parameters

Store $store
array $names

Return Value

void

void reset()

Reset all tags in the set.

Return Value

void

string resetTag(string $name)

Reset the tag and return the new tag identifier.

Parameters

string $name

Return Value

string

void flush()

Flush all the tags in the set.

Return Value

void

flushTag(string $name)

Flush the tag from the cache.

Parameters

string $name

string getNamespace()

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

Return Value

string

protected array tagIds()

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

Return Value

array

string tagId(string $name)

Get the unique tag identifier for a given tag.

Parameters

string $name

Return Value

string

string tagKey(string $name)

Get the tag identifier key for a given tag.

Parameters

string $name

Return Value

string

array getNames()

Get all of the tag names in the set.

Return Value

array

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

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

Parameters

string $key
int $ttl
string $updateWhen

Return Value

void

LazyCollection entries()

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

Return Value

LazyCollection

void flushStaleEntries()

Remove the stale entries from the tag set.

Return Value

void