diff --git a/knotserver/git/git.go b/knotserver/git/git.go index 8a9367a1..f165a0b9 100644 --- a/knotserver/git/git.go +++ b/knotserver/git/git.go @@ -26,9 +26,10 @@ var ( 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 }