SimpleCache1
in package
implements
CacheInterface
This is the default implementation for in-memory cell collection.
Alternative implementation should leverage off-memory, non-volatile storage to reduce overall memory usage.
Table of Contents
Interfaces
- CacheInterface
Properties
- $cache : array<string|int, mixed>
Methods
- clear() : bool
- delete() : bool
- deleteMultiple() : bool
- get() : mixed
- getMultiple() : iterable<string|int, mixed>
- has() : bool
- set() : bool
- setMultiple() : bool
Properties
$cache
private
array<string|int, mixed>
$cache
= []
Cell Cache
Methods
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