Explain Redis eviction policies and how to configure LRU caching.
expand_more
maxmemory-policy. Common policies include:
- volatile-lru: Evicts the least recently used keys with expiration TTLs.
- allkeys-lru: Evicts any least recently used key regardless of TTL.
- noeviction (Default): Returns errors on write attempts once memory is full.