class Illuminate / Cache / TagSet
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

TagSet

Properties

protected

$store Store

The cache store implementation.

Default: null
protected

$names array

The tag names.

Default: []

Methods

public

__construct ( Store $store , array $names ) : void

Create a new TagSet instance.

Parameters

public

reset ( ) : void

Reset all tags in the set.

public

resetTag ( $name ) : string

Reset the tag and return the new tag identifier.

Parameters

  • $name string
public

flush ( ) : void

Flush all the tags in the set.

public

flushTag ( $name ) : void

Flush the tag from the cache.

Parameters

  • $name string
public

getNamespace ( ) : string

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

protected

tagIds ( ) : array

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

public

tagId ( $name ) : string

Get the unique tag identifier for a given tag.

Parameters

  • $name string
public

tagKey ( $name ) : string

Get the tag identifier key for a given tag.

Parameters

  • $name string
public

getNames ( ) : array

Get all of the tag names in the set.