SimpleCache3
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
= []
Methods
clear()
public
clear() : bool
Return values
booldelete()
public
delete(string $key) : bool
Parameters
- $key : string
Return values
booldeleteMultiple()
public
deleteMultiple(iterable<string|int, mixed> $keys) : bool
Parameters
- $keys : iterable<string|int, mixed>
Return values
boolget()
public
get(string $key[, mixed $default = null ]) : mixed
Parameters
- $key : string
- $default : mixed = null
getMultiple()
public
getMultiple(iterable<string|int, mixed> $keys[, mixed $default = null ]) : iterable<string|int, mixed>
Parameters
- $keys : iterable<string|int, mixed>
- $default : mixed = null
Return values
iterable<string|int, mixed>has()
public
has(string $key) : bool
Parameters
- $key : string
Return values
boolset()
public
set(string $key, mixed $value[, null|int|DateInterval $ttl = null ]) : bool
Parameters
- $key : string
- $value : mixed
- $ttl : null|int|DateInterval = null
Return values
boolsetMultiple()
public
setMultiple(iterable<string|int, mixed> $values[, null|int|DateInterval $ttl = null ]) : bool
Parameters
- $values : iterable<string|int, mixed>
- $ttl : null|int|DateInterval = null