Authored by wuxiao

redis serialize

... ... @@ -44,11 +44,7 @@ class LivingController extends BaseController
->createCommand('SELECT MAX(update_time),count(*) FROM {{%room}} WHERE best!="0" AND find_in_set(:app,app)')
->bindValue(':app', $this->app)
->getRawSql()]);
$this->cache->set($key, json_encode($ret), Yii::$app->params['defaultCacheExpire'], $dependency);
}
if (is_string($ret)){
$ret = json_decode($ret,true);
$this->cache->set($key, $ret, Yii::$app->params['defaultCacheExpire'], $dependency);
}
$ret = array_values(array_filter($ret,function($row){
... ...