forked from tangled.org/core
this repo has no description

knotserver/git: set ttl for ristretto cache

Changed files
+4 -3
knotserver
git
+4 -3
knotserver/git/git.go
···
func init() {
cache, _ := ristretto.NewCache(&ristretto.Config{
-
NumCounters: 1e7,
-
MaxCost: 1 << 30,
-
BufferItems: 64,
+
NumCounters: 1e7,
+
MaxCost: 1 << 30,
+
BufferItems: 64,
+
TtlTickerDurationInSec: 120,
})
commitCache = cache
}