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'] ); }