edit-icon download-icon

What is the default data eviction policy of ApsaraDB for Redis?

Last Updated: Aug 08, 2017

ApsaraDB for Redis instances adopt the volatile-LRU eviction policy by default. To change to another eviction policy, log on to the Redis console and click System Parameters.

You can set the eviction policy to the following options:

  • VolatileLRU

    Only old data with an expiration time is evicted in accordance with the LRU algorithm.

  • VolatileTTL

    Only data with an expiration time is evicted in an ascending order of TTL values.

  • AllKeysLRU

    Old data is evicted in accordance with the LRU algorithm.

  • VolatileRandom

    Only old data with an expiration time is evicted randomly.

  • AllKeysRandom

    Old data is evicted randomly.

  • NoEviction

    No data is evicted. An error is returned when new data is written.

Thank you! We've received your feedback.