Can we have multiple databases in ElastiCache (for Redis)?

Viewed 921

Difficult to find this information for ElastiCache (for Redis) - if we can use databases with it such as 0, 1, 2 ... like it's possible in Redis.

1 Answers

We have quite a few ElastiCache instances running in AWS and it simply works. Launch the CLI by issuing command:

redis-cli

Then use the following command:

select <db number>

For example:

select 4

And you'll be working with DB 4, by default you're connected to DB 0. Redis by default has 16 databases available.

Related