class TagSet (View source)

Properties

protected StoreInterface $store

The cache store implementation.

protected array $names

The tag names.

Methods

void
__construct(StoreInterface $store, array $names = array())

Create a new TagSet instance.

void
reset()

Reset all tags in the set.

string
tagId(string $name)

Get the unique tag identifier for a given tag.

array
tagIds()

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

string
getNamespace()

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

string
resetTag(string $name)

Reset the tag and return the new tag identifier

string
tagKey(string $name)

Get the tag identifier key for a given tag.

Details

void __construct(StoreInterface $store, array $names = array())

Create a new TagSet instance.

Parameters

StoreInterface $store
array $names

Return Value

void

void reset()

Reset all tags in the set.

Return Value

void

string tagId(string $name)

Get the unique tag identifier for a given tag.

Parameters

string $name

Return Value

string

protected array tagIds()

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

Return Value

array

string getNamespace()

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

Return Value

string

string resetTag(string $name)

Reset the tag and return the new tag identifier

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