diff options
author | antirez <antirez@gmail.com> | 2009-05-27 22:53:20 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2009-05-27 22:53:20 +0200 |
commit | 3fd78bcd45338e96f761b558bfa68e83a8141f0b (patch) | |
tree | 6a16f3642ef6643b849a9940b84a5f819e198811 /redis.conf | |
parent | 16edf32dc3eeacb718046f954621b3574abafaa9 (diff) | |
download | redis-3fd78bcd45338e96f761b558bfa68e83a8141f0b.tar.gz |
maxmemory implemented
Diffstat (limited to 'redis.conf')
-rw-r--r-- | redis.conf | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/redis.conf b/redis.conf index 09f926d7b..e7b5b9d07 100644 --- a/redis.conf +++ b/redis.conf @@ -88,6 +88,18 @@ databases 16 # maxclients 128 +# Don't use more memory than the specified amount of bytes. +# When the memory limit is reached Redis will try to remove keys with an +# EXPIRE set. It will try to start freeing keys that are going to expire +# in little time and preserve keys with a longer time to live. +# Redis will also try to remove objects from free lists if possible. +# +# If all this fails, Redis will start to reply with errors to commands +# that will use more memory, like SET, LPUSH, and so on, and will continue +# to reply to most read-only commands like GET. + +# maxmemory <bytes> + ############################### ADVANCED CONFIG ############################### # Glue small output buffers together in order to send small replies in a |