All Products
Search
Document Center

Tair (Redis® OSS-Compatible):How much memory can each database in a Tair instance use? How do I switch between databases?

Last Updated:Oct 31, 2024

Each Tair (Redis OSS-compatible) instance can have up to 256 databases named from DB0 to DB255. Each database in a Tair 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 Tair 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

Tair (Redis OSS-compatible) cluster instances support multiple databases in both direct connection mode and proxy mode. However, due to inherent limits, specific mainstream clients such as Jedis may not be able to use the SELECT command when they connect to cluster instances in direct connection mode.