PHP Class Cache\Namespaced\NamespacedCachePool

Author: Tobias Nyholm ([email protected])
Inheritance: implements Psr\Cache\CacheItemPoolInterface
显示文件 Open project: php-cache/cache Class Usage Examples

Public Methods

Method Description
__construct ( Cache\Hierarchy\HierarchicalPoolInterface $cachePool, string $namespace )
clear ( )
commit ( )
deleteItem ( $key )
deleteItems ( array $keys )
getItem ( $key )
getItems ( array $keys = [] )
hasItem ( $key )
save ( Psr\Cache\CacheItemInterface $item )
saveDeferred ( Psr\Cache\CacheItemInterface $item )

Private Methods

Method Description
prefixValue ( &$key ) Add namespace prefix on the key.
prefixValues ( array &$keys )

Method Details

__construct() public method

public __construct ( Cache\Hierarchy\HierarchicalPoolInterface $cachePool, string $namespace )
$cachePool Cache\Hierarchy\HierarchicalPoolInterface
$namespace 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 = [] )
$keys array

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