Hi!
A redis instance can have multiple databases (16 by default, index 0..15), so you can separate data from different applications in different databases (or however you want to organize your data). By default, database 0 is used. In case database 0 is already used for something, it would be nice being able to configure the index to use in CHI::Driver::Redis, so cache data isn't mixed with application data. The redis command to switch databases is SELECT (
http://redis.io/commands/SELECT). Best place to do this is in the on_connect hook, so it gets automatically applied to new connections, like this:
$r->on_connect(
my ($r) = @_;
$r->select($config->{index} // 0);
);
$r->connect(...)
Best regards,
Jonas
On Mon Feb 02 19:51:32 2015, GPHAT wrote:
Show quoted text> Hey there!
>
> I don't know what you mean by this request. Can you elaborate a bit? Thanks!
>
> On Tue Jan 27 10:47:11 2015, jkramer wrote:
> > Please allow configuration of redis database index (currently it
> > always uses the redis default, index 0).
>
>