Monorepo for Tangled tangled.org

knotserver/git: set ttl for ristretto cache

anirudh.fi 7bc28059 0d761a6a

verified
Changed files
+4 -3
knotserver
git
+4 -3
knotserver/git/git.go
··· 26 26 27 27 func init() { 28 28 cache, _ := ristretto.NewCache(&ristretto.Config{ 29 - NumCounters: 1e7, 30 - MaxCost: 1 << 30, 31 - BufferItems: 64, 29 + NumCounters: 1e7, 30 + MaxCost: 1 << 30, 31 + BufferItems: 64, 32 + TtlTickerDurationInSec: 120, 32 33 }) 33 34 commitCache = cache 34 35 }