PSRSimpleCache implements Cache
Read onlyYes
FinalYes
Interfaces
Methods
- __construct() : mixed
- clear() : void
- delete() : void
- get() : Row|Rows|CacheIndex
- has() : bool
- set() : void
Methods
__construct()
public
__construct(CacheInterface $cache[, int|DateInterval|null $ttl = null ][, Serializer $serializer = new NativePHPSerializer() ]) : mixed
Parameters
- $cache : CacheInterface
- $ttl : int|DateInterval|null = null
- $serializer : Serializer = new NativePHPSerializer()
clear()
public
clear() : void
delete()
public
delete(string $key) : void
Parameters
- $key : string
get()
public
get(string $key) : Row|Rows|CacheIndex
Parameters
- $key : string
Return values
Row|Rows|CacheIndexhas()
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolset()
public
set(string $key, CacheIndex|Rows|Row $value) : void
Parameters
- $key : string
- $value : CacheIndex|Rows|Row