From bc4a091306b15a23b27ee0ae4d34d950aba1b2bb Mon Sep 17 00:00:00 2001 From: Sochima Biereagu Date: Wed, 22 Jan 2025 11:11:36 +0100 Subject: [PATCH 1/2] auth with password --- src/Queue/Connection/Redis.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Queue/Connection/Redis.php b/src/Queue/Connection/Redis.php index c91b521..891f3e2 100644 --- a/src/Queue/Connection/Redis.php +++ b/src/Queue/Connection/Redis.php @@ -183,6 +183,7 @@ protected function getRedis(): \Redis $this->redis = new \Redis(); $this->redis->connect($this->host, $this->port); + $this->redis->auth($this->password); return $this->redis; } From 05485aa63889054e69d943c9815e2b2c0474e20d Mon Sep 17 00:00:00 2001 From: Sochima Biereagu Date: Wed, 22 Jan 2025 11:15:29 +0100 Subject: [PATCH 2/2] conditionally --- src/Queue/Connection/Redis.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Queue/Connection/Redis.php b/src/Queue/Connection/Redis.php index 891f3e2..8f1b9aa 100644 --- a/src/Queue/Connection/Redis.php +++ b/src/Queue/Connection/Redis.php @@ -183,8 +183,9 @@ protected function getRedis(): \Redis $this->redis = new \Redis(); $this->redis->connect($this->host, $this->port); - $this->redis->auth($this->password); - + if ($this->password) { + $this->redis->auth($this->password); + } return $this->redis; }