Documentation

Psr16Cache
in package
implements CacheInterface, PruneableInterface, ResettableInterface uses ProxyTrait

Turns a PSR-6 cache into a PSR-16 one.

Tags
author

Nicolas Grekas p@tchwork.com

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

$createCacheItem

private Closure|null $createCacheItem = null

$packCacheItem

private static Closure $packCacheItem

Methods

clear()

public clear() : bool
Return values
bool

delete()

public delete(mixed $key) : bool
Parameters
$key : mixed
Return values
bool

deleteMultiple()

public deleteMultiple(mixed $keys) : bool
Parameters
$keys : mixed
Return values
bool

get()

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
bool

set()

public set(mixed $key, mixed $value[, mixed $ttl = null ]) : bool
Parameters
$key : mixed
$value : mixed
$ttl : mixed = null
Return values
bool

setMultiple()

public setMultiple(mixed $values[, mixed $ttl = null ]) : bool
Parameters
$values : mixed
$ttl : mixed = null
Return values
bool

        
On this page

Search results