Created
December 15, 2011 00:46
-
-
Save waratuman/1479314 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# MAXMEMORY POLICY: how Redis will select what to remove when maxmemory | |
# is reached? You can select among five behavior: | |
# | |
# volatile-lru -> remove the key with an expire set using an LRU algorithm | |
# allkeys-lru -> remove any key accordingly to the LRU algorithm | |
# volatile-random -> remove a random key with an expire set | |
# allkeys->random -> remove a random key, any key | |
# volatile-ttl -> remove the key with the nearest expire time (minor TTL) | |
# noeviction -> don't expire at all, just return an error on write operations | |
# | |
# Note: with all the kind of policies, Redis will return an error on write | |
# operations, when there are not suitable keys for eviction. | |
# | |
# At the date of writing this commands are: set setnx setex append | |
# incr decr rpush lpush rpushx lpushx linsert lset rpoplpush sadd | |
# sinter sinterstore sunion sunionstore sdiff sdiffstore zadd zincrby | |
# zunionstore zinterstore hset hsetnx hmset hincrby incrby decrby | |
# getset mset msetnx exec sort | |
# | |
# The default is: | |
# | |
# maxmemory-policy volatile-lru |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment