By default - Redis uses **noeviction** policy, which means that keys are NOT evicted and when the memory limit is reached, the server would return an error when trying to cache new data. Read operations would work normally. ``` mateusz@MacBook-Air-Mateusz ~ % docker exec -it redis redis-cli info | grep maxmemory_policy maxmemory_policy:noeviction ``` ### See also 1. [[Cache Mechanisms]] ### Reference 1. [Redis Eviction Policies](https://redis.io/docs/latest/develop/reference/eviction/#eviction-policies)