+ [refac] select database after connected to redis server.

This commit is contained in:
liugang
2024-11-20 15:42:49 +08:00
committed by 朱金勇
parent c496b00364
commit 37d7879cf6
+1
View File
@@ -76,6 +76,7 @@ class RedisDriver implements CacheInterface
{
$this->redis = \helper::connectRedis($setting);
$this->redis->setOption(\Redis::OPT_SERIALIZER, $this->getSerializer($setting->serializer));
$this->redis->select($setting->database);
}
catch(Exception $e)
{