Psr16Cache
in package
implements
CacheInterface, PruneableInterface, ResettableInterface
uses
ProxyTrait
Turns a PSR-6 cache into a PSR-16 one.
Tags
Table of Contents
Interfaces
- CacheInterface
- PruneableInterface
- Interface extends psr-6 and psr-16 caches to allow for pruning (deletion) of all expired cache items.
- ResettableInterface
- Resets a pool's local state.
Properties
- $cacheItemPrototype : CacheItem|null
- $createCacheItem : Closure|null
- $packCacheItem : Closure
Methods
- __construct() : mixed
- clear() : bool
- delete() : bool
- deleteMultiple() : bool
- get() : mixed
- getMultiple() : iterable<string|int, mixed>
- has() : bool
- set() : bool
- setMultiple() : bool
Properties
$cacheItemPrototype
private
CacheItem|null
$cacheItemPrototype
= null
$createCacheItem
private
Closure|null
$createCacheItem
= null
$packCacheItem
private
static Closure
$packCacheItem
Methods
__construct()
public
__construct(CacheItemPoolInterface $pool) : mixed
Parameters
- $pool : CacheItemPoolInterface
clear()
public
clear() : bool
Return values
booldelete()
public
delete(mixed $key) : bool
Parameters
- $key : mixed
Return values
booldeleteMultiple()
public
deleteMultiple(mixed $keys) : bool
Parameters
- $keys : mixed
Return values
boolget()
public
get(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
- $default : mixed = null
getMultiple()
public
getMultiple(mixed $keys[, mixed $default = null ]) : iterable<string|int, mixed>
Parameters
- $keys : mixed
- $default : mixed = null
Return values
iterable<string|int, mixed>has()
public
has(mixed $key) : bool
Parameters
- $key : mixed
Return values
boolset()
public
set(mixed $key, mixed $value[, mixed $ttl = null ]) : bool
Parameters
- $key : mixed
- $value : mixed
- $ttl : mixed = null
Return values
boolsetMultiple()
public
setMultiple(mixed $values[, mixed $ttl = null ]) : bool
Parameters
- $values : mixed
- $ttl : mixed = null