diff --git a/tutor/templates/apps/redis/redis.conf b/tutor/templates/apps/redis/redis.conf index cfdf709d31..7502e203bb 100644 --- a/tutor/templates/apps/redis/redis.conf +++ b/tutor/templates/apps/redis/redis.conf @@ -39,3 +39,9 @@ auto-aof-rewrite-percentage 100 auto-aof-rewrite-min-size 64mb aof-load-truncated yes aof-use-rdb-preamble yes + +################################ MEMORY - EVICTION ############################### + +# https://redis.io/docs/reference/eviction/ +maxmemory {{ REDIS_MAXMEMORY }} +maxmemory-policy allkeys-lru