CachedPool extends Cache
Class CachePool
Table of Contents
Methods
- __construct() : mixed
- CachePool constructor.
- addItem() : void
- cleanItems() : void
- deleteItem() : void
- getItem() : mixed
- loadDataFromCache() : void
- saveDataToCache() : void
Methods
__construct()
CachePool constructor.
public
__construct(Pool $pool, int $ttl, string $cacheId, Cache $cache, EventManager $eventManager) : mixed
Parameters
addItem()
public
addItem(string $key, mixed $value) : void
Parameters
- $key : string
- $value : mixed
cleanItems()
public
cleanItems() : void
deleteItem()
public
deleteItem(string $key) : void
Parameters
- $key : string
getItem()
public
getItem(string $key) : mixed
Parameters
- $key : string
loadDataFromCache()
public
loadDataFromCache() : void
saveDataToCache()
public
saveDataToCache() : void