$_key
$_key : string|callable
The key or function to generate a key.
Handles caching queries and loading results from the cache.
Used by Cake\Datasource\QueryTrait internally.
$_config : string|\Cake\Cache\CacheEngine
Config for cache engine.
__construct(string|\Closure $key, string|\Cake\Cache\CacheEngine $config)
Constructor.
string|\Closure | $key | The key or function to generate a key. |
string|\Cake\Cache\CacheEngine | $config | The cache config name or cache engine instance. |
fetch(object $query) : \Cake\Datasource\ResultSetInterface|null
Load the cached results from the cache or run the query.
object | $query | The query the cache read is for. |
Either the cached results or null.
_resolveCacher() : \Cake\Cache\CacheEngine
Get the cache engine.
Loading…