Help Center > > FAQs> Client Usage> How Do I Access a DCS Redis Instance Through redis-cli?

How Do I Access a DCS Redis Instance Through redis-cli?

Updated at: Apr 01, 2019 GMT+08:00

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.

Note:

  1. Some Redis commands are not supported or restricted. For details, see Redis Command Compatibility.
  2. 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.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel