Skip to content
Snippets Groups Projects
Commit 86cd5fff authored by Ozan Ozkan's avatar Ozan Ozkan Committed by Tim van Dijen
Browse files

Redis connection parameter update (#1222)

Added "database" parameter for Redis Client.
parent 4c7f8ffa
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment