From fbc5ea44285f8869ff1423dae50cd33daf8e8362 Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Sat, 5 Jul 2025 00:38:30 +0800 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BE=D1=87=D0=B8=20=D0=BF?= =?UTF-8?q?=D0=BE=20keydb?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 2 +- docker/keydb/keydb.conf | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.env.example b/.env.example index 8ec9c60..f5c2014 100644 --- a/.env.example +++ b/.env.example @@ -1,4 +1,4 @@ -IPTV_ENV=prod +IPTV_ENV=dev KEYDB_UID=1000 KEYDB_GID=1000 diff --git a/docker/keydb/keydb.conf b/docker/keydb/keydb.conf index 390fca8..56b697e 100644 --- a/docker/keydb/keydb.conf +++ b/docker/keydb/keydb.conf @@ -302,9 +302,8 @@ always-show-logo yes # # save "" -save 900 1 -save 300 10 -save 60 10000 +save 900 10 +save 300 100 # By default Redis will stop accepting writes if RDB snapshots are enabled # (at least one save point) and the latest background save failed. @@ -886,8 +885,8 @@ maxmemory 1073741824 # getset mset msetnx exec sort # # The default is: -# -# maxmemory-policy noeviction + +maxmemory-policy allkeys-lru # LRU, LFU and minimal TTL algorithms are not precise algorithms but approximated # algorithms (in order to save memory), so you can tune it for speed or