You can use a Redis client, the redis-cli tool, or Data Management Service (DMS) to connect to an ApsaraDB for Redis instance.

Connection tools

Tool Description
DMS You can use Alibaba Cloud DMS to connect to an ApsaraDB for Redis instance and manage data that is stored on the instance.
Redis client You can use a Redis client for the required programming language to connect to an ApsaraDB for Redis instance.
redis-cli You can use the open source Redis tool redis-cli to connect to an ApsaraDB for Redis instance.

Connect to an instance over the internal network

You can connect to an ApsaraDB for Redis instance that does not have a public endpoint only over the internal network. Before an ApsaraDB for Redis instance is connected with an Alibaba Cloud service, such as Elastic Compute Service (ECS), make sure that the following requirements are met:
  • The ECS instance and the ApsaraDB for Redis instance are in the same region. For more information, see Regions.
  • The ECS instance and the ApsaraDB for Redis instance are both in the classic network or in the same Virtual Private Cloud (VPC) network.
  • The internal IP address of the ECS instance is added to the whitelist of the ApsaraDB for Redis instance.

Connect to an instance over the Internet

You can connect to an ApsaraDB for Redis instance that has a public endpoint from a local computer over the Internet.

Connect to an instance over the private endpoint

By default, ApsaraDB for Redis cluster instances are connected through a proxy. This method simplifies application code and minimizes development costs. However, the proxy-based connection may increase the response latency of ApsaraDB for Redis. To reduce the number of connections and response latency of ApsaraDB for Redis, you can enable the private endpoint and connect to the cluster instances through the private endpoint. For more information, see Enable direct connection and Use a private endpoint to connect to an ApsaraDB for Redis instance.

Troubleshooting