By default, ApsaraDB for Redis adopts the LRU data eviction policy. To change to another data eviction policy, perform the following steps:
Log on to the Redis console .
Go to Instance List page, click Manage to open the Instance Information page, and click System Parameters.
Click Modify to the right of maxmemory-policy to modify the eviction policy.
After modifying the eviction policy, click OK.