From 283d44a559b9b6f2a3294bb48ad329322ba71e1b Mon Sep 17 00:00:00 2001 From: ankithg03 Date: Sun, 29 Nov 2020 18:38:01 +0530 Subject: [PATCH] #23 The Redis Password Index Added In RedisConfig --- src/RedisClient.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/RedisClient.php b/src/RedisClient.php index 257586f..47ff5a7 100644 --- a/src/RedisClient.php +++ b/src/RedisClient.php @@ -80,14 +80,15 @@ private function validateConfiguration() { * @param array $redisConfig * @return Credis_Client */ - private function redisClientFactory(array $redisConfig): Credis_Client + private function redisClientFactory(array $redisConfig) { return new $this->redisClientClass( $redisConfig['host'], $redisConfig['port'], 10, '', - $redisConfig['database'] + $redisConfig['database'], + $redisConfig['password'] ); }