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.

You can change the eviction policy by configuring the maxmemory-policy parameter.

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.