Property | Type | Description | |
---|---|---|---|
$cachePool | Psr\Cache\CacheItemPoolInterface | The cache pool. | |
$lastItem | Psr\Cache\CacheItemInterface | null | This item is transiently stored so that save() can reuse the cache item usually retrieved by fetch() beforehand, instead of requesting it a second time. |
Method | Description | |
---|---|---|
__construct ( Psr\Cache\CacheItemPoolInterface $cachePool ) | ||
fetch ( $key ) | ||
save ( $key, |
public __construct ( Psr\Cache\CacheItemPoolInterface $cachePool ) | ||
$cachePool | Psr\Cache\CacheItemPoolInterface |
protected CacheItemPoolInterface,Psr\Cache $cachePool | ||
return | Psr\Cache\CacheItemPoolInterface |
protected CacheItemInterface,Psr\Cache|null $lastItem | ||
return | Psr\Cache\CacheItemInterface | null |