What Is the Default Data Eviction Policy?

Data is evicted from cache based on a user-defined space limit in order to make space for new data. For details, see the Redis official website. You can view or change the eviction policy by configuring an instance parameter on the DCS console.

Eviction Policies Supported by DCS Redis Instances

When maxmemory is reached, you can select one of the following eight eviction policies:

If no key can be recycled, volatile-lru, volatile-random, and volatile-ttl are the same as noeviction. For details, see the description of noeviction.

Viewing or Changing Eviction Policies

You can view or change the eviction policy with the maxmemory-policy parameter.