Stupid question probably..When using a cache system to cache a resultset, does it's needed to explicitely ask the cache (here Redis) if the key exist before triggering the query or the framework do that automaticaly?
example, in my action to retrieve all clients: does this is enough:
$clients = Clients::find(
array(
"cache" => array(
"key" => "clients-list"
)
));
or do I need to write :
$clients = $this->di->cache->get("clients-list");
if(!$clients){
$clients = Clients::find(
array(
"cache" => array(
"key" => "clients-list"
)
));
}