刘旭的个人网站

How is Redis different from other key-value stores?

What happens if Redis runs out of memory?

Redis has built-in protections allowing the users to set a max limit on memory usage, using the maxmemory option in the configuration file to put a limit on the memory Redis can use. If this limit is reached, Redis will start to reply with an error to write commands, but will continue to accept read-only commands.

You can also configure Redis to evit keys when the max memory limit is reached.