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)) {