Question: what is eviction in redis?
Answer: Eviction policies The exact behavior Redis follows when the maxmemory limit is reached is configured using the maxmemory-policy configuration directive. ... allkeys-lru: evict keys by trying to remove the less recently used (LRU) keys first, in order to make space for the new data added.