Documentation

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.

Either SimpleCache1 or SimpleCache3, but not both, may be used. For code coverage testing, it will always be SimpleCache3.

Tags
codeCoverageIgnore

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

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