Interface TaggableInterface

Summary

Fully Qualified Name: Zend\Cache\Storage\TaggableInterface

Description

Methods

Name Description Defined By
clearByTags() Remove items matching given tags. TaggableInterface
getTags() Get tags of an item by given key TaggableInterface
setTags() Set tags to an item by given key. TaggableInterface

Method Details

clearByTags()

Remove items matching given tags.

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

Parameter Name Type Description
$tags string[]
$disjunction bool

Returns: bool

getTags()

Get tags of an item by given key

Parameter Name Type Description
$key string

Returns: string[]|bool

setTags()

Set tags to an item by given key.

An empty array will remove all tags.

Parameter Name Type Description
$key string
$tags string[]

Returns: bool

Top