Help Center> Distributed Cache Service> FAQ> Redis Usage> Does DCS for Redis Support Multi-DB?

Does DCS for Redis Support Multi-DB?

Both single-node and master/standby DCS Redis instances support multiple databases (multi-DB). By default, single-node and master/standby DCS instances can read and write data in 256 databases (databases numbering 0–255). The default database is DB0. Multi-DB is used for data isolation. The size of each database is not evenly allocated. As a result, one DB may fully occupy the memory of the instance.

Cluster DCS instances do not support multi-DB.

The DB quantity cannot be modified.