Skip to content

Add config for specifying Redis database #3997

Description

@bryannielsen

When creating a Redis connection it should be possible to choose a database through the configuration settings.

Currently you can specify connection details in config.php

$config['redis'] = array(
  'host' => '127.0.0.1',
  'password' => NULL,
  'port' => 6379,
  'timeout' => 0
);

It would be helpful if you could also specify a database to use:

$config['redis'] = array(
  'host' => '127.0.0.1',
  'password' => NULL,
  'port' => 6379,
  'timeout' => 0,
  'database' => 2
);

The original post for this request can be found on the ExpressionEngine Forum

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions