PHP Class Cache\Adapter\Common\CacheItem

Author: Aaron Scherer ([email protected])
Author: Tobias Nyholm ([email protected])
Inheritance: implements Cache\Adapter\Common\HasExpirationDateInterface, implements Psr\Cache\CacheItemInterface, implements Cache\Taggable\TaggableItemInterface
Afficher le fichier Open project: php-cache/cache Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( string $key, Closure | boolean $callable = null, $value = null )
addTag ( $tag )
expiresAfter ( $time )
expiresAt ( $expiration )
get ( )
getExpirationDate ( )
getKey ( )
getTags ( )
isHit ( )
set ( $value )
setTags ( array $tags )

Private Methods

Méthode Description
initialize ( ) If callable is not null, execute it an populate this object with values.

Method Details

__construct() public méthode

public __construct ( string $key, Closure | boolean $callable = null, $value = null )
$key string
$callable Closure | boolean or boolean hasValue

addTag() public méthode

public addTag ( $tag )

expiresAfter() public méthode

public expiresAfter ( $time )

expiresAt() public méthode

public expiresAt ( $expiration )

get() public méthode

public get ( )

getExpirationDate() public méthode

public getExpirationDate ( )

getKey() public méthode

public getKey ( )

getTags() public méthode

public getTags ( )

isHit() public méthode

public isHit ( )

set() public méthode

public set ( $value )

setTags() public méthode

public setTags ( array $tags )
$tags array