By default, each ApsaraDB for Redis instance has 256 databases named from DB 0 to DB 255.

The size of each database is not restricted. But the available database space is limited by the overall space of the ApsaraDB for Redis instance.

To switch between different databases, run the SELECT command. For example, to select DB 10, run the following command.

SELECT 10