class TagSet

Properties

protected Store $store

The cache store implementation.

protected array $names

The tag names.

Methods

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

Create a new TagSet instance.

void
reset()

Reset all tags in the set.

string
resetTag(string $name)

Reset the tag and return the new tag identifier.

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.

array
getNames()

Get all of the tag names in the set.

Details

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

Create a new TagSet instance.

Parameters

Store $store
array $names

Return Value

void

at line 41
void reset()

Reset all tags in the set.

Return Value

void

at line 52
string resetTag(string $name)

Reset the tag and return the new tag identifier.

Parameters

string $name

Return Value

string

at line 64
string getNamespace()

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

Return Value

string

at line 74
protected array tagIds()

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

Return Value

array

at line 85
string tagId(string $name)

Get the unique tag identifier for a given tag.

Parameters

string $name

Return Value

string

at line 96
string tagKey(string $name)

Get the tag identifier key for a given tag.

Parameters

string $name

Return Value

string

at line 106
array getNames()

Get all of the tag names in the set.

Return Value

array