User recaching in background

This commit is contained in:
daru
2022-05-11 00:21:05 +02:00
parent 4536a5fae7
commit b3c152e7b1
2 changed files with 37 additions and 15 deletions

View File

@@ -71,7 +71,7 @@ func main() {
log.Fatal(err)
}
defer seasoncache.Close()
userCache, err = bigcache.NewBigCache(bigcache.DefaultConfig(4 * time.Hour))
userCache, err = bigcache.NewBigCache(bigcache.DefaultConfig(7 * time.Hour))
if err != nil {
log.Fatal(err)
}