Creating Your First High-performance Cache Service
Distributed Cache Service (DCS) supports three cache types: single-node, master/standby, and cluster, ensuring high read/write performance and fast data access.
On the management console, you can create a cache instance in one-click mode and perform instance O&M easily.
This guide describes how to create and access a cache instance, so that you can quickly get started with DCS.
Step 1: Set the Environment
1. Log in to the management console. Choose Service List > Network > Virtual Private Cloud, and apply for a virtual private cloud (VPC) for secure network isolation of cache instances.
2. Choose Service List > Computing > Elastic Cloud Server, and create an elastic cloud server (ECS), which is used to download a client for cache instance access.

Note
1. An ECS must be bound with an elastic IP address and has the permission to access external networks.
2. If you have an available VPC and ECS, you do not need to create them again.
1
Apply for a VPC.
2
Apply for an ECS.

View Image
Step 2: Create an Instance
1. Log in to the management console, and choose Service List > Application > Distributed Cache Service.
2. On the DCS dashboard page, click Create Cache Instance and specify instance parameters to create an instance.

Note
1. Select the same VPC for the instance and the ECS.
2. You are advised to configure the same security group as that for the ECS, without the need to add port access rules.
1
Select the charging mode.
2
Select the instance's configuration.

View Image
Step 3: Access the Cache Instance
1. After creating a cache instance, view the connection address and port on the DCS instance management page.
2. Log in to the ECS, and download and install a client.
3. Access the instance.
4. Read and write cached data.

Note
You can download a Redis client if you have selected the Redis engine during instance application.
1
Obtain the instance's connection address.
2
Download and install a client.

3
Access the cache instance.

4
Read and write cached data.


View Image
