Methods

Remove items matching given tags.

clearByTags(array $tags, bool $disjunction) : bool

If $disjunction only one of the given tags must match else all given tags must match.

Parameters

$tags

string[]

$disjunction

bool

Returns

bool

Get tags of an item by given key

getTags(string $key) : string[] | FALSE

Parameters

$key

string

Returns

string[]FALSE

Set tags to an item by given key.

setTags(string $key, array $tags) : bool

An empty array will remove all tags.

Parameters

$key

string

$tags

string[]

Returns

bool