From d3fc3e7ccc1760dc4b8604807be01140fa7f69c5 Mon Sep 17 00:00:00 2001 From: Nenad Ticaric Date: Wed, 19 Jul 2023 12:35:23 +0200 Subject: [PATCH] cluster support --- src/Engines/RedisEngine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Engines/RedisEngine.php b/src/Engines/RedisEngine.php index 62b9a5d..53ef65f 100644 --- a/src/Engines/RedisEngine.php +++ b/src/Engines/RedisEngine.php @@ -60,6 +60,7 @@ public function loadConfig(array $config) $redisHost = $this->config['redis_host']; $redisPort = $this->config['redis_port']; + $redisOptions = $this->config['redis_options'] ?? null; $redisScheme = $this->config['redis_scheme'] ?? "tcp"; $redisPassword = $this->config['redis_password'] ?? null; $redisSSLOptions = $this->config['redis_ssl_options'] ?? null; @@ -70,8 +71,7 @@ public function loadConfig(array $config) 'port' => $redisPort, 'password' => $redisPassword, 'ssl' => $redisSSLOptions - ]); - + ], $redisOptions); } public function createIndex($indexName)