diff options
author | antirez <antirez@gmail.com> | 2014-03-21 08:03:30 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2014-03-21 08:03:34 +0100 |
commit | 5fa3248badcd042cecc5aed29b8fb6cc59cd009a (patch) | |
tree | 3aa46dbab9a98bf4a40246a1caf03d8a931eeb7b /src/redis.h | |
parent | a98369929e250e94240f719abcf1d6e1255202a9 (diff) | |
download | redis-5fa3248badcd042cecc5aed29b8fb6cc59cd009a.tar.gz |
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.
Diffstat (limited to 'src/redis.h')
-rw-r--r-- | src/redis.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.h b/src/redis.h index c14a29607..5ac794948 100644 --- a/src/redis.h +++ b/src/redis.h @@ -323,7 +323,7 @@ #define REDIS_MAXMEMORY_ALLKEYS_LRU 3 #define REDIS_MAXMEMORY_ALLKEYS_RANDOM 4 #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 */ #define REDIS_LUA_TIME_LIMIT 5000 /* milliseconds */ |