From f0539a2f38fde48623290816bf248ef9383431d5 Mon Sep 17 00:00:00 2001 From: Cristhian Garcia Date: Tue, 16 Jan 2024 17:41:56 -0500 Subject: [PATCH] fix: allow to setup redis maxmemory --- tutor/templates/apps/redis/redis.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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