InterviewHubPRO
Section Overview
Q45

Question 45 of 60

Part 4: In-Memory Caching & Fast Data Stores (Redis) (41 - 50)

75%
Databases & System Design•Part 4: In-Memory Caching & Fast Data Stores (Redis) (41 - 50)

Redis Eviction Policies:

In Simple Words: allkeys-lru (evicts least-recently-used), volatile-lru (evicts LRU among keys with TTL), allkeys-lfu (evicts least-frequently-used).

ini
# redis.conf memory limit & eviction policy:
maxmemory 4gb
maxmemory-policy allkeys-lru