This topic describes the information about and usage notes for API operations of Tair.
For information about how to use Alibaba Cloud APIs, see Use OpenAPI.
Basic information
Versions
Version | Description |
Recommended. |
Tair and ApsaraDB for Redis share a set of API operations.
Endpoints
You must select an endpoint based on the region of your instance to reduce the latency.
For example, if your instance resides in the China (Zhangjiakou) region and is deployed in a virtual private cloud (VPC), specify r-kvstore-vpc.cn-zhangjiakou.aliyuncs.com
as the endpoint. For more information, see Endpoints.
Protocols
The Remote Procedure Call (RPC) protocol is used.
Methods to call API operations
Method | Supported | Description |
Alibaba Cloud SDK (recommended) | Yes | For information about the programming languages supported by Tair SDKs and the methods to install dependencies, see ApsaraDB for Redis SDKs. |
Yes | None | |
Yes | None | |
Yes | None |
If the preceding methods cannot meet your business requirements, you can encapsulate the API requests. However, this method is not recommended. For more information, see Custom encapsulation.
Usage notes
If an error is returned after you call an API operation, you must check whether the request parameters and their values are valid based on the returned error code. For more information, see Error codes.
You can also use the Alibaba Cloud OpenAPI Diagnostics platform to perform self-service diagnostics based on the returned request ID or SDK error information.