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.