作者 邓超

优化

... ... @@ -307,6 +307,13 @@ end",
if(empty(static::$instance[$cid])){
static::$instance[$cid] = new \Lib\RedisPool($cid);
}
try {
static::$instance[$cid]->client->ping();
}catch (\Throwable $e){
static::$instance[$cid]->close();
static::$instance[$cid] = new \Lib\RedisPool($cid);
}
return static::$instance[$cid];
}
... ...