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.
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.
Apply for a VPC.
Apply for an ECS.
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.
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.
Select the charging mode.
Select the instance's configuration.
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.
You can download a Redis client if you have selected the Redis engine during instance application.
Obtain the instance's connection address.
Download and install a client.
Access the cache instance.
Read and write cached data.