This commit is contained in:
2021-03-18 14:34:46 +08:00
parent fe1ffb960b
commit 65d6cd43fa
3 changed files with 38 additions and 30 deletions
+1 -1
View File
@@ -59,7 +59,7 @@ class Redis extends Pool
{
$this->printClients($config['host'], $name, true);
$redis = new SRedis();
if (!$redis->connect($config['host'], (int)$config['port'], $config['timeout'])) {
if (!$redis->pconnect($config['host'], (int)$config['port'], $config['timeout'])) {
throw new RedisConnectException(sprintf('The Redis Connect %s::%d Fail.', $config['host'], $config['port']));
}
if (empty($config['auth']) || !$redis->auth($config['auth'])) {