abstract class TagSet

Properties

protected Store $store

The cache store implementation.

protected array $names

The tag names.

Methods

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

Create a new TagSet instance.

bool
reset()

Reset all tags in the set.

bool
flush()

Flush all the tags in the set.

bool
attemptEach(iterable $items, Closure $operation)

Attempt an operation for every item.

array
getNames()

Get all of the tag names in the set.

Details

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

Create a new TagSet instance.

Parameters

Store $store
array $names

at line 36
abstract bool reset()

Reset all tags in the set.

Return Value

bool

at line 41
abstract bool flush()

Flush all the tags in the set.

Return Value

bool

at line 51
protected bool attemptEach(iterable $items, Closure $operation)

Attempt an operation for every item.

Parameters

iterable $items
Closure $operation

Return Value

bool

at line 78
array getNames()

Get all of the tag names in the set.

Return Value

array