TagSet
class TagSet (View source)
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. | |
| void | flush()
Flush all the tags in the set. | |
| flushTag(string $name)
Flush the tag from the cache. | ||
| 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
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.
void flush()
Flush all the tags in the set.
flushTag(string $name)
Flush the tag from the cache.
string getNamespace()
Get a unique namespace that changes when any of the tags are flushed.
protected 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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/11.x/Illuminate/Cache/TagSet.html