All Products
Search
Document Center

ApsaraDB for Redis:How much memory can each database in an ApsaraDB for Redis instance use? How do I switch between databases?

Last Updated:Apr 20, 2024

Each ApsaraDB for Redis instance can have up to 256 databases named from DB0 to DB255. Each database in an ApsaraDB for Redis instance does not have a separate memory usage limit. The amount of memory that each database can use is limited by the total available memory of the ApsaraDB for Redis instance.

You can run the SELECT command to switch between different databases. For example, you can run the following command to switch to DB10:

SELECT 10
Note

To switch between multiple databases, use a cluster instance in proxy mode. Cluster instances in direct connection mode are compatible with open source Redis clusters and do not support multiple databases.