diff --git a/pkg/redis/PhpRedis.php b/pkg/redis/PhpRedis.php index 71ead40d4..c05bf9e12 100644 --- a/pkg/redis/PhpRedis.php +++ b/pkg/redis/PhpRedis.php @@ -82,6 +82,14 @@ public function connect() ); } + if (array_key_exists('pass', $this->config)) { + $this->config['auth'] = $this->config['pass']; + } + + if (array_key_exists('auth', $this->config)) { + $this->redis->auth($this->config['auth']); + } + $this->redis->select($this->config['database']); }