Documentation

StaticCache
in package

Table of Contents

$cache  : array<string|int, mixed>
get()  : mixed
getOrNull()  : mixed
has()  : bool
set()  : mixed

Properties

$cache

private static array<string|int, mixed> $cache = []

Methods

get()

public static get(string $type, string $key[, bool $allowNull = false ]) : mixed
Parameters
$type : string
$key : string
$allowNull : bool = false
Return values
mixed

getOrNull()

public static getOrNull(string $type, string $key) : mixed
Parameters
$type : string
$key : string
Return values
mixed

has()

public static has(string $type, string $key) : bool
Parameters
$type : string
$key : string
Return values
bool

set()

public static set(string $type, string $key, mixed $value) : mixed
Parameters
$type : string
$key : string
$value : mixed
Return values
mixed

Search results