tangled
alpha
login
or
join now
regnault.dev
/
core
forked from
tangled.org/core
Monorepo for Tangled
0
fork
atom
overview
issues
pulls
pipelines
knotserver/git: set ttl for ristretto cache
anirudh.fi
11 months ago
7bc28059
0d761a6a
verified
This commit was signed with the committer's
known signature
.
anirudh.fi
SSH Key Fingerprint:
SHA256:cz35vdbiWEzCNEfuL9fMC2JVIhtXavXBHrRjv8gxpAk=
+4
-3
1 changed file
expand all
collapse all
unified
split
knotserver
git
git.go
+4
-3
knotserver/git/git.go
···
26
26
27
27
func init() {
28
28
cache, _ := ristretto.NewCache(&ristretto.Config{
29
29
-
NumCounters: 1e7,
30
30
-
MaxCost: 1 << 30,
31
31
-
BufferItems: 64,
29
29
+
NumCounters: 1e7,
30
30
+
MaxCost: 1 << 30,
31
31
+
BufferItems: 64,
32
32
+
TtlTickerDurationInSec: 120,
32
33
})
33
34
commitCache = cache
34
35
}