From 58cccd4429e0f9a2b8d303c85d4f0f0ee37e264a Mon Sep 17 00:00:00 2001 From: titrxw <1120309488@qq.com> Date: Sun, 20 Dec 2020 17:57:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BB=A3=E7=A0=81=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Core/Cache/Handler/RedisHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Src/Core/Cache/Handler/RedisHandler.php b/Src/Core/Cache/Handler/RedisHandler.php index b9bfb47c..4b84b85b 100644 --- a/Src/Core/Cache/Handler/RedisHandler.php +++ b/Src/Core/Cache/Handler/RedisHandler.php @@ -21,7 +21,7 @@ class RedisHandler extends HandlerAbstract { public static function connect($config) : HandlerAbstract { if (!empty($config['cluster']['enable'])) { $redis = static::createRedisClusterInstance($config); - } elseif (!empty($config['cluster']['enable'])) { + } elseif (!empty($config['sentinel']['enable'])) { $redis = static::createRedisSentinel($config); } else { $redis = static::createRedis($config);