Reputation: 61
Now there is a redis, max memory policy is configured as "volatile-lru" by default. As we all know, when redis runs out of memory, redis will select some keys with expiration time and delete them according to “LRU” rules. Now suppose that all the keys in this redis have not set an expiration time. When redis runs out of memory, write a new key, will redis report an error?
Upvotes: 1
Views: 272
Reputation: 6754
You will get a "OOM command not allowed" error on any write command. Read commands will continue to be served.
See related questions.
Upvotes: 1