class ArrayCache implements CacheInterface

A simple array cache

Properties

private $cache

Methods

bool
has(string $key)

No description

string|null
get(string $key)

No description

set(string $key, string $value)

No description

remove(string $key)

No description

Details

at line 26
bool has(string $key)

No description

Parameters

string $key

A unique key

Return Value

bool

Whether the cache has a value for this key

See also

CacheInterface::has

at line 34
string|null get(string $key)

No description

Parameters

string $key

A unique key

Return Value

string|null

The value in the cache

See also

CacheInterface::get

at line 46
set(string $key, string $value)

No description

Parameters

string $key

A unique key

string $value

The value to cache

See also

CacheInterface::set

at line 55
remove(string $key)

No description

Parameters

string $key

A unique key

See also

CacheInterface::remove