Psr16Cache
in package
implements
CacheInterface, PruneableInterface, ResettableInterface
Uses
ProxyTrait
Turns a PSR-6 cache into a PSR-16 one.
Tags
Interfaces, Classes and Traits
- 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.
Table of Contents
- METADATA_EXPIRY_OFFSET = 1527506807
- $cacheItemPrototype : mixed
- $createCacheItem : mixed
- __construct() : mixed
- clear() : bool
- {@inheritdoc}
- delete() : bool
- {@inheritdoc}
- deleteMultiple() : bool
- {@inheritdoc}
- get() : mixed
- {@inheritdoc}
- getMultiple() : iteratable<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
$createCacheItem
private
mixed
$createCacheItem
Methods
__construct()
public
__construct(CacheItemPoolInterface $pool) : mixed
Parameters
- $pool : CacheItemPoolInterface
Return values
mixed —clear()
{@inheritdoc}
public
clear() : bool
Return values
bool —delete()
{@inheritdoc}
public
delete(mixed $key) : bool
Parameters
- $key : mixed
Return values
bool —deleteMultiple()
{@inheritdoc}
public
deleteMultiple(mixed $keys) : bool
Parameters
- $keys : mixed
Return values
bool —get()
{@inheritdoc}
public
get(mixed $key[, mixed $default = null ]) : mixed
Parameters
- $key : mixed
- $default : mixed = null
Return values
mixed —getMultiple()
{@inheritdoc}
public
getMultiple(mixed $keys[, mixed $default = null ]) : iteratable<string|int, mixed>
Parameters
- $keys : mixed
- $default : mixed = null
Return values
iteratable<string|int, mixed> —has()
{@inheritdoc}
public
has(mixed $key) : bool
Parameters
- $key : mixed
Return values
bool —set()
{@inheritdoc}
public
set(mixed $key, mixed $value[, mixed $ttl = null ]) : bool
Parameters
- $key : mixed
- $value : mixed
- $ttl : mixed = null
Return values
bool —setMultiple()
{@inheritdoc}
public
setMultiple(mixed $values[, mixed $ttl = null ]) : bool
Parameters
- $values : mixed
- $ttl : mixed = null