PHP Class MatthiasMullie\Scrapbook\Psr6\Pool

Author: Matthias Mullie ([email protected])
Inheritance: implements Psr\Cache\CacheItemPoolInterface
Show file Open project: matthiasmullie/scrapbook Class Usage Examples

Protected Properties

Property Type Description
$deferred Item[]
$repository Repository
$store MatthiasMullie\Scrapbook\KeyValueStore

Public Methods

Method Description
__construct ( MatthiasMullie\Scrapbook\KeyValueStore $store )
__destruct ( )
clear ( )
commit ( )
deleteItem ( $key )
deleteItems ( array $keys )
getItem ( $key )
getItems ( array $keys = [] ) : Item[]
hasItem ( $key )
save ( Psr\Cache\CacheItemInterface $item )
saveDeferred ( Psr\Cache\CacheItemInterface $item )

Protected Methods

Method Description
assertValidKey ( string $key ) Throws an exception if $key is invalid.

Method Details

__construct() public method

public __construct ( MatthiasMullie\Scrapbook\KeyValueStore $store )
$store MatthiasMullie\Scrapbook\KeyValueStore

__destruct() public method

public __destruct ( )

assertValidKey() protected method

Throws an exception if $key is invalid.
protected assertValidKey ( string $key )
$key string

clear() public method

public clear ( )

commit() public method

public commit ( )

deleteItem() public method

public deleteItem ( $key )

deleteItems() public method

public deleteItems ( array $keys )
$keys array

getItem() public method

public getItem ( $key )

getItems() public method

public getItems ( array $keys = [] ) : Item[]
$keys array
return Item[]

hasItem() public method

public hasItem ( $key )

save() public method

public save ( Psr\Cache\CacheItemInterface $item )
$item Psr\Cache\CacheItemInterface

saveDeferred() public method

public saveDeferred ( Psr\Cache\CacheItemInterface $item )
$item Psr\Cache\CacheItemInterface

Property Details

$deferred protected property

protected Item[],MatthiasMullie\Scrapbook\Psr6 $deferred
return Item[]

$repository protected property

protected Repository,MatthiasMullie\Scrapbook\Psr6 $repository
return Repository

$store protected property

protected KeyValueStore,MatthiasMullie\Scrapbook $store
return MatthiasMullie\Scrapbook\KeyValueStore