"vscode:/vscode.git/clone" did not exist on "c0f5c678c2e848899427160cf468e3727f0b752d"
Commit 7f274e3b authored by antirez's avatar antirez
Browse files

The default maxmemory policy is now noeviction.

This is safer as by default maxmemory should just set a memory limit
without any key to be deleted, unless the policy is set to something
more relaxed.
parent a219339e
...@@ -416,7 +416,7 @@ slave-priority 100 ...@@ -416,7 +416,7 @@ slave-priority 100
# #
# The default is: # The default is:
# #
# maxmemory-policy volatile-lru # maxmemory-policy noeviction
# LRU and minimal TTL algorithms are not precise algorithms but approximated # LRU and minimal TTL algorithms are not precise algorithms but approximated
# algorithms (in order to save memory), so you can tune it for speed or # algorithms (in order to save memory), so you can tune it for speed or
......
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
#define REDIS_MAXMEMORY_ALLKEYS_LRU 3 #define REDIS_MAXMEMORY_ALLKEYS_LRU 3
#define REDIS_MAXMEMORY_ALLKEYS_RANDOM 4 #define REDIS_MAXMEMORY_ALLKEYS_RANDOM 4
#define REDIS_MAXMEMORY_NO_EVICTION 5 #define REDIS_MAXMEMORY_NO_EVICTION 5
#define REDIS_DEFAULT_MAXMEMORY_POLICY REDIS_MAXMEMORY_VOLATILE_LRU #define REDIS_DEFAULT_MAXMEMORY_POLICY REDIS_MAXMEMORY_NO_EVICTION
/* Scripting */ /* Scripting */
#define REDIS_LUA_TIME_LIMIT 5000 /* milliseconds */ #define REDIS_LUA_TIME_LIMIT 5000 /* milliseconds */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment