Cache
Table of Contents
Methods
- __construct() : mixed
- Cache constructor.
- getExists() : mixed
- Returns data from cache if exists.
- remove() : void
- Deletes cache by exists key.
- store() : void
- Stores data to cache by instance key.
Methods
__construct()
Cache constructor.
public
__construct(string $key[, string|array<string|int, mixed> $id = '' ]) : mixed
Parameters
- $key : string
-
Cache key.
- $id : string|array<string|int, mixed> = ''
-
Optional cache id.
getExists()
Returns data from cache if exists.
public
getExists() : mixed
remove()
Deletes cache by exists key.
public
static remove(string $key) : void
Parameters
- $key : string
-
Cache key.
store()
Stores data to cache by instance key.
public
store(mixed $data) : void
Parameters
- $data : mixed