PHP Class Cache\Adapter\PHPArray\ArrayCachePool

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

Méthodes publiques

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

Méthodes protégées

Méthode 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 méthode

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 méthode

protected appendListItem ( $name, $key )

clearAllObjectsFromCache() protected méthode

protected clearAllObjectsFromCache ( )

clearOneObjectFromCache() protected méthode

protected clearOneObjectFromCache ( $key )

fetchObjectFromCache() protected méthode

protected fetchObjectFromCache ( $key )

getItem() public méthode

public getItem ( $key )

getItemWithoutGenerateCacheKey() protected méthode

protected getItemWithoutGenerateCacheKey ( $key )

getList() protected méthode

protected getList ( $name )

getValueFormStore() protected méthode

protected getValueFormStore ( $key )

removeList() protected méthode

protected removeList ( $name )

removeListItem() protected méthode

protected removeListItem ( $name, $key )

save() public méthode

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

storeItemInCache() protected méthode

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