From 25f36fc3da79311578aca2b773f0318650ba4cc2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Tue, 7 Sep 2021 14:14:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/Cache/Base/Redis.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/Cache/Base/Redis.php b/core/Cache/Base/Redis.php index 60f4a175..4a816b9c 100644 --- a/core/Cache/Base/Redis.php +++ b/core/Cache/Base/Redis.php @@ -140,7 +140,7 @@ class Redis implements StopHeartbeatCheck private function newClient(): \Redis { $redis = new \Redis(); - if (!$redis->pconnect($this->host, $this->port, $this->timeout)) { + if (!$redis->connect($this->host, $this->port, $this->timeout)) { throw new RedisConnectException(sprintf('The Redis Connect %s::%d Fail.', $this->host, $this->port)); } if (!empty($this->auth) && !$redis->auth($this->auth)) {