PHP Trait Cache\Taggable\TaggablePoolTrait

Author: Tobias Nyholm ([email protected])
Datei anzeigen Open project: php-cache/cache

Public Methods

Method Description
clearTags ( array $tags ) : boolean
deleteItems ( array $keys ) : boolean

Protected Methods

Method Description
appendListItem ( string $name, string $key ) Add a item key on a list named $name.
getItem ( string $key ) : Cache\Taggable\TaggableItemInterface
getList ( string $name ) : array Get an array with all the values in the list named $name.
getTagKey ( $tag ) : string
preRemoveItem ( string $key ) Removes the key form all tag lists.
removeList ( string $name ) : boolean Remove the list.
removeListItem ( string $name, string $key ) Remove an item from the list.
saveTags ( Cache\Taggable\TaggableItemInterface $item )

Method Details

appendListItem() abstract protected method

Add a item key on a list named $name.
abstract protected appendListItem ( string $name, string $key )
$name string
$key string

clearTags() public method

public clearTags ( array $tags ) : boolean
$tags array
return boolean

deleteItems() abstract public method

abstract public deleteItems ( array $keys ) : boolean
$keys array
return boolean

getItem() abstract protected method

abstract protected getItem ( string $key ) : Cache\Taggable\TaggableItemInterface
$key string
return Cache\Taggable\TaggableItemInterface

getList() abstract protected method

Get an array with all the values in the list named $name.
abstract protected getList ( string $name ) : array
$name string
return array

getTagKey() protected method

protected getTagKey ( $tag ) : string
$tag
return string

preRemoveItem() protected method

Removes the key form all tag lists.
protected preRemoveItem ( string $key )
$key string

removeList() abstract protected method

Remove the list.
abstract protected removeList ( string $name ) : boolean
$name string
return boolean

removeListItem() abstract protected method

Remove an item from the list.
abstract protected removeListItem ( string $name, string $key )
$name string
$key string

saveTags() protected method

protected saveTags ( Cache\Taggable\TaggableItemInterface $item )
$item Cache\Taggable\TaggableItemInterface