diff --git a/redis.conf b/redis.conf index f40d53e4d8496728cbe68ca126337c4e9d439cbd..1e53917b67c5a2f20127e92784b8995af65aaf86 100644 --- a/redis.conf +++ b/redis.conf @@ -416,7 +416,7 @@ slave-priority 100 # # The default is: # -# maxmemory-policy volatile-lru +# maxmemory-policy noeviction # 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 diff --git a/src/redis.h b/src/redis.h index c14a2960779a4467bda85a12eb46750c60c86ad3..5ac79494820a5d258fd0dc494bc831c3e41619fb 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 */