You can call the API operations provided by Database Autonomy Service (DAS) to perform cache analysis or key analysis.


  • Cache analysis: You can use this feature to analyze backup files of ApsaraDB for Redis and identify big keys and dynamic hotkeys in your instances. This feature allows you to view the information about an instance, such as the memory usage, distribution, and expiration time of keys. You can optimize your instances based on the analysis results. This feature helps you resolve issues such as insufficient memory and performance degradation that are caused by skewed distribution of keys. For more information, see Use the cache analysis feature to display details about big keys.
  • Key analysis: You can use this feature to display big keys and hotkeys on an instance in real time. You can also query big keys and hotkeys within the last four days. You can view information such as the memory usage and access frequency of keys, which helps you optimize the performance of the instance. For more information, see Query big keys and hotkeys by using the key analysis feature.


API operations described in this topic are provided by DAS. You must use the core library and DAS SDKs to call these operations.

For more information, see Quick start.

Related operations

Feature Operation Description
Cache analysis CreateCacheAnalysisJob Creates a cache analysis task.
DescribeCacheAnalysisJobs Queries the list of cache analysis tasks.
DescribeCacheAnalysisJob Queries the details of a cache analysis task.
DescribeHotKeys Queries hotkeys of an ApsaraDB for Redis instance.
Key analysis DescribeHotBigKeys Queries the dynamic hotkeys and big keys in the current memory.
DescribeTopHotKeys Queries the top 20 hotkeys within a period of time.
DescribeTopBigKeys Queries the top 20 big keys within a period of time.
DescribeHotKeys Queries the hotkeys of an ApsaraDB for Redis instance.