diff --git a/compose.yml b/compose.yml index 6403d1c..17ee612 100644 --- a/compose.yml +++ b/compose.yml @@ -24,8 +24,8 @@ services: networks: - flod_nw command: ["redis-server", "--save", "", "--appendonly", "no"] # reine In-Memory-Instanz - #volumes: - #- redis-data:/data # falls du doch Persistence willst + volumes: + - redis-data:/data # falls du doch Persistence willst restart: unless-stopped newt: @@ -42,5 +42,5 @@ services: networks: flod_nw: -#volumes: - #redis-data: +volumes: + redis-data: diff --git a/main.go b/main.go index 7a27daf..dbb8a15 100644 --- a/main.go +++ b/main.go @@ -308,7 +308,7 @@ func main() { } go func() { - ticker := time.NewTicker(6 * time.Hour) + ticker := time.NewTicker(2 * time.Hour) defer ticker.Stop() for range ticker.C { if err := syncOnce(ctx, cfg, rdb, ranger); err != nil {