PHP Класс Cache\Adapter\PHPArray\ArrayCachePool

Автор: Tobias Nyholm ([email protected])
Наследование: extends Cache\Adapter\Common\AbstractCachePool
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( integer $limit = null, array &$cache = [] )
getItem ( $key )
save ( Psr\Cache\CacheItemInterface $item )

Защищенные методы

Метод Описание
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 )

Описание методов

__construct() публичный метод

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 appendListItem ( $name, $key )

clearAllObjectsFromCache() защищенный метод

protected clearAllObjectsFromCache ( )

clearOneObjectFromCache() защищенный метод

protected clearOneObjectFromCache ( $key )

fetchObjectFromCache() защищенный метод

protected fetchObjectFromCache ( $key )

getItem() публичный метод

public getItem ( $key )

getItemWithoutGenerateCacheKey() защищенный метод

protected getItemWithoutGenerateCacheKey ( $key )

getList() защищенный метод

protected getList ( $name )

getValueFormStore() защищенный метод

protected getValueFormStore ( $key )

removeList() защищенный метод

protected removeList ( $name )

removeListItem() защищенный метод

protected removeListItem ( $name, $key )

save() публичный метод

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

storeItemInCache() защищенный метод

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