Bugfixes. Optimizations/refactor. Add redis for player-cache. Add docker files. Replace sqlite dep. Single-Calc for existing players. Game-Metrics in JSON.

This commit is contained in:
MaxJa4
2024-01-21 00:49:20 +01:00
parent 069d76520e
commit 16d782fbe8
41 changed files with 1154 additions and 203 deletions

View File

@@ -1,11 +1,11 @@
package utils
import (
"InfantrySkillCalculator/models"
"io"
"time"
)
var ClanLastChanged time.Time = time.Now().UTC()
var CacheLastChanged time.Time = time.Now().UTC()
var PlayersLastChanged time.Time = time.Now().UTC()
var GinWriter io.Writer = nil
var GameMetrics models.GameMetrics
var PlayerCacheLifetime = 24 * time.Hour