From 86cd5fffc9c126e8f07d9be64c3a0196b239a9ea Mon Sep 17 00:00:00 2001
From: Ozan Ozkan <epicdog@users.noreply.github.com>
Date: Thu, 31 Oct 2019 16:17:55 +0300
Subject: [PATCH] Redis connection parameter update (#1222)

Added "database" parameter for Redis Client.
---
 lib/SimpleSAML/Store/Redis.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/SimpleSAML/Store/Redis.php b/lib/SimpleSAML/Store/Redis.php
index 3a8a410fe..51c07cd77 100644
--- a/lib/SimpleSAML/Store/Redis.php
+++ b/lib/SimpleSAML/Store/Redis.php
@@ -36,12 +36,14 @@ class Redis extends Store
             $port = $config->getInteger('store.redis.port', 6379);
             $prefix = $config->getString('store.redis.prefix', 'SimpleSAMLphp');
             $password = $config->getString('store.redis.password', '');
+            $database = $config->getInteger('store.redis.database', 0);
 
             $redis = new Client(
                 [
                     'scheme' => 'tcp',
                     'host' => $host,
                     'port' => $port,
+                    'database' => $database,
                 ] + (!empty($password) ? ['password' => $password] : []),
                 [
                     'prefix' => $prefix,
-- 
GitLab