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.
Constants
- METADATA_EXPIRY_OFFSET = 1527506807
Properties
- $cacheItemPrototype : mixed
- $createCacheItem : Closure|null
Methods
- __construct() : mixed
- clear() : bool
- {@inheritdoc}
- delete() : bool
- {@inheritdoc}
- deleteMultiple() : bool
- {@inheritdoc}
- get() : mixed
- {@inheritdoc}
- getMultiple() : iterable<string|int, mixed>
- {@inheritdoc}
- has() : bool
- {@inheritdoc}
- set() : bool
- {@inheritdoc}
- setMultiple() : bool
- {@inheritdoc}
Constants
METADATA_EXPIRY_OFFSET
private
mixed
METADATA_EXPIRY_OFFSET
= 1527506807
Properties
$cacheItemPrototype
private
mixed
$cacheItemPrototype
= null
$createCacheItem
private
Closure|null
$createCacheItem
= null
Methods
__construct()
public
__construct(CacheItemPoolInterface $pool) : mixed
Parameters
- $pool : CacheItemPoolInterface
clear()
{@inheritdoc}
public
clear() : bool
Return values
booldelete()
{@inheritdoc}
public
delete(mixed $key) : bool
Parameters
- $key : mixed
Return values
booldeleteMultiple()
{@inheritdoc}
public
deleteMultiple(mixed $keys) : bool
Parameters
- $keys : mixed
Return values
boolget()
{@inheritdoc}
public
get(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
- $default : mixed = null
getMultiple()
{@inheritdoc}
public
getMultiple(mixed $keys[, mixed $default = null ]) : iterable<string|int, mixed>
Parameters
- $keys : mixed
- $default : mixed = null
Return values
iterable<string|int, mixed>has()
{@inheritdoc}
public
has(mixed $key) : bool
Parameters
- $key : mixed
Return values
boolset()
{@inheritdoc}
public
set(mixed $key, mixed $value[, mixed $ttl = null ]) : bool
Parameters
- $key : mixed
- $value : mixed
- $ttl : mixed = null
Return values
boolsetMultiple()
{@inheritdoc}
public
setMultiple(mixed $values[, mixed $ttl = null ]) : bool
Parameters
- $values : mixed
- $ttl : mixed = null