Question

Managed Redis select DB, any limits?

Posted May 11, 2021 81 views
RedisDigitalOcean Managed Redis

For most Redis client tutorials I’m seeing, you need to select a DB within the Redis instance/cluster (defaults to 0). I’m wondering:

  1. Do I need to create these with a client (seems to be no options to manage this through the UI).

  2. Is there a limit to the number of DBs for a DO managed Redis cluster? Default on a regular install is 16, but that can be raised. How’s that work here?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @CarterB

By default, we provide 16 databases in Redis which you can switch to by using SELECT statement. Increasing the number of databases is not supported .

Redis databases are numbered from 0 to 15 and, by default, you connect to database 0 when you connect to your Redis instance. However, you can change the database you’re using with the select command after you connect:

select 15

Hope this helps!

Regards
Priyanka