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