EngineResultCache
FinalYes
Table of Contents
Methods
- __construct() : mixed
- Cache engine 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 engine constructor.
public
__construct(string $key[, int $ttl = 3600 ]) : mixed
Parameters
- $key : string
- $ttl : int = 3600
getExists()
Returns data from cache if exists.
public
getExists() : mixed
remove()
Deletes cache by exists key.
public
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