Report this

What is the reason for this report?

Managed Redis select DB, any limits?

Posted on May 11, 2021

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.