Initiates a cache analysis task.
Note Alibaba Cloud has optimized the cache analysis feature of ApsaraDB for Redis to improve
user experience. This API operation is deprecated and you can use the new API operation
for cache analysis. For more information, see API operations for cache analysis will be upgraded.
Before you call this operation, make sure that the following requirements are met:
- The engine version of the instance is Redis 4.0 or later.
- The latest minor version of the ApsaraDB for Redis instance is used. For more information about whether you are required to upgrade the minor version, see How do I check whether the minor version of an ApsaraDB for Redis instance is the latest?
After you initiate a cache analysis task, you can call the DescribeCacheAnalysisReport operation to view the analysis result.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | CreateCacheAnalysisTask |
The operation that you want to perform. Set the value to CreateCacheAnalysisTask. |
InstanceId | String | Yes | r-bp1zxszhcgatnx**** |
The ID of the instance. |
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9**** |
The ID of the request. |
Examples
Sample requests
https://r-kvstore.aliyuncs.com/?Action=CreateCacheAnalysisTask
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>
Sample success responses
XML
format
<CreateCacheAnalysisTaskResponse>
<RequestId>BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****</RequestId>
</CreateCacheAnalysisTaskResponse>
JSON
format
{
"RequestId": "BBC1E3D6-7C88-4DF5-9A3D-0DB1E6D9****"
}
Error codes
For a list of error codes, visit the API Error Center.