ApsaraDB for Memcache supports six data eviction policies. You can set your expected eviction policy by modifying the maxmemory-policy parameter in the console.
Log on to the Memcache console and locate the target instance.
Click Instance ID or Manage to go to the Instance Information page.
Select Parameter Settings in the navigation bar on the left.
Click Modify at the right of maxmemory-policy.
Select your expected eviction policy, and click OK.