package Default

 Methods

Remove items matching given tags.

clearByTags(array<mixed,string> $tags, boolean $disjunction = false) : boolean

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

Parameters

$tags

array<mixed,string>

$disjunction

boolean

Returns

boolean

Get tags of an item by given key

getTags(string $key) : array<mixed,string> | FALSE

Parameters

$key

string

Returns

array<mixed,string>FALSE

Set tags to an item by given key.

setTags(string $key, array<mixed,string> $tags) : boolean

An empty array will remove all tags.

Parameters

$key

string

$tags

array<mixed,string>

Returns

boolean