From 6b110abda642505c365b38f71084aa4f43afa79c Mon Sep 17 00:00:00 2001 From: Fabian Date: Sun, 25 Oct 2020 12:12:51 +0100 Subject: [PATCH] Add dbindex in connection properties Let the user to choose a dbindex for his Redis connection to separate data in his Redis instance --- 19.0/apache/config/redis.config.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/19.0/apache/config/redis.config.php b/19.0/apache/config/redis.config.php index 9429c901..1b3b1c2d 100644 --- a/19.0/apache/config/redis.config.php +++ b/19.0/apache/config/redis.config.php @@ -14,4 +14,8 @@ if (getenv('REDIS_HOST')) { } elseif (getenv('REDIS_HOST')[0] != '/') { $CONFIG['redis']['port'] = 6379; } + + if (getenv('REDIS_DB_INDEX') !== false) { + $CONFIG['redis']['dbindex'] = getenv('REDIS_DB_INDEX'); + } }