How Do I Access a DCS Redis Instance Through redis-cli?
redis-cli is a command-line interface (CLI) provided by Redis. You can use redis-cli to access DCS instances and read and write instance data. For details, see Accessing a DCS Redis Instance Through redis-cli.
- Some Redis commands are not supported or restricted. For details, see Redis Command Compatibility.
- redis-cli is interconnected with DCS Redis instances in one of the following modes:
- Intra-Virtual Private Cloud (VPC) access: The Elastic Cloud Server (ECS) where redis-cli runs and the DCS Redis instance are in the same VPC and security group. If the security groups are different, they allow access to the instance over port 6379. For details, see How to Select and Configure a Security Group?
- Cross-VPC access: The ECS where redis-cli runs and the DCS Redis instance are in different VPCs, but a VPC peering connection has been established. For details, see Do DCS Instances Support Cross-VPC Access?
- Public access: If public access is enabled for a DCS instance, redis-cli can access the DCS Redis instance over the Internet. For details, see Accessing a DCS Redis Instance Over a Public Network.