NewFacts
redis

Redis

www.redis.com

## What is the default eviction policy in Redis and how to change it?

The default eviction policy for Redis is 'volatile-lru', which evicts the least recently used keys that have an expiration set when memory limits are reached. To change the eviction policy, the maxmemory-policy configuration directive can be set to one of the available policies, such as 'noeviction', 'allkeys-lru', or 'volatile-lfu'.

Knowledge provided by NewFacts.

If any information on this page is erroneous, please contact hello@newfacts.org.

NewFacts content is verified by brands themselves. If you're a brand owner and want to claim your page, please click here.