...
|
...
|
@@ -227,7 +227,7 @@ trait DbQuery { |
|
|
if($this->cache){
|
|
|
$key = 'data:'.md5(is_string($sql) ? $sql : json_encode($sql));
|
|
|
if(redis()->has($key)){
|
|
|
return redis()->get($key,0);
|
|
|
return (int) redis()->get($key,0);
|
|
|
}
|
|
|
}
|
|
|
$query = $this->query($sql);
|
...
|
...
|
|