PHP Class Cache\Taggable\TaggablePSR6ItemAdapter

Author: Magnus Nordlander ([email protected])
Inheritance: implements Cache\Taggable\TaggableItemInterface
Datei anzeigen Open project: php-cache/cache Class Usage Examples

Public Methods

Method Description
addTag ( $tag )
expiresAfter ( $time )
expiresAt ( $expiration )
get ( )
getKey ( )
getTags ( )
isHit ( )
makeTaggable ( Psr\Cache\CacheItemInterface $cacheItem ) : Cache\Taggable\TaggableItemInterface
set ( $value )
setTags ( array $tags )
unwrap ( ) : Psr\Cache\CacheItemInterface

Private Methods

Method Description
__construct ( Psr\Cache\CacheItemInterface $cacheItem )
initializeTags ( )
isItemCreatedHere ( mixed $rawItem ) : boolean Verify that the raw data is a cache item created by this class.
updateTags ( )

Method Details

addTag() public method

public addTag ( $tag )

expiresAfter() public method

public expiresAfter ( $time )

expiresAt() public method

public expiresAt ( $expiration )

get() public method

public get ( )

getKey() public method

public getKey ( )

getTags() public method

public getTags ( )

isHit() public method

public isHit ( )

makeTaggable() public static method

public static makeTaggable ( Psr\Cache\CacheItemInterface $cacheItem ) : Cache\Taggable\TaggableItemInterface
$cacheItem Psr\Cache\CacheItemInterface
return Cache\Taggable\TaggableItemInterface

set() public method

public set ( $value )

setTags() public method

public setTags ( array $tags )
$tags array

unwrap() public method

public unwrap ( ) : Psr\Cache\CacheItemInterface
return Psr\Cache\CacheItemInterface