PHP Class Cache\Adapter\PHPArray\ArrayCachePool

Author: Tobias Nyholm ([email protected])
Inheritance: extends Cache\Adapter\Common\AbstractCachePool
Datei anzeigen Open project: php-cache/cache Class Usage Examples

Public Methods

Method Description
__construct ( integer $limit = null, array &$cache = [] )
getItem ( $key )
save ( Psr\Cache\CacheItemInterface $item )

Protected Methods

Method Description
appendListItem ( $name, $key )
clearAllObjectsFromCache ( )
clearOneObjectFromCache ( $key )
fetchObjectFromCache ( $key )
getItemWithoutGenerateCacheKey ( $key )
getList ( $name )
getValueFormStore ( $key )
removeList ( $name )
removeListItem ( $name, $key )
storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )

Method Details

__construct() public method

public __construct ( integer $limit = null, array &$cache = [] )
$limit integer the amount if items stored in the cache. Using a limit will reduce memory leaks.
$cache array

appendListItem() protected method

protected appendListItem ( $name, $key )

clearAllObjectsFromCache() protected method

protected clearAllObjectsFromCache ( )

clearOneObjectFromCache() protected method

protected clearOneObjectFromCache ( $key )

fetchObjectFromCache() protected method

protected fetchObjectFromCache ( $key )

getItem() public method

public getItem ( $key )

getItemWithoutGenerateCacheKey() protected method

protected getItemWithoutGenerateCacheKey ( $key )

getList() protected method

protected getList ( $name )

getValueFormStore() protected method

protected getValueFormStore ( $key )

removeList() protected method

protected removeList ( $name )

removeListItem() protected method

protected removeListItem ( $name, $key )

save() public method

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

storeItemInCache() protected method

protected storeItemInCache ( Psr\Cache\CacheItemInterface $item, $ttl )
$item Psr\Cache\CacheItemInterface