Documentation

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

Methods

delete()

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

deleteMultiple()

public deleteMultiple(iterable<string|int, mixed> $keys) : bool
Parameters
$keys : iterable<string|int, mixed>
Return values
bool

get()

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
bool

set()

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

setMultiple()

public setMultiple(iterable<string|int, mixed> $values[, null|int|DateInterval $ttl = null ]) : bool
Parameters
$values : iterable<string|int, mixed>
$ttl : null|int|DateInterval = null
Return values
bool

        
On this page

Search results