interface CacheInterface

Methods

bool
contains(string $key)

Check if a key exists in the cache.

mixed
get(string $key)

Get a key from the cache.

set(string $key, mixed $data)

Set a key in the cache.

delete(string $key)

Delete a key from the cache.

flush()

Flush the cache.

Details

at line 14
bool contains(string $key)

Check if a key exists in the cache.

Parameters

string $key

Return Value

bool

at line 23
mixed get(string $key)

Get a key from the cache.

Parameters

string $key

Return Value

mixed

at line 31
set(string $key, mixed $data)

Set a key in the cache.

Parameters

string $key
mixed $data

at line 38
delete(string $key)

Delete a key from the cache.

Parameters

string $key

at line 43
flush()

Flush the cache.