From 82a7d70f0217a42a5bc0f6aa38c7283d4391bde2 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Mon, 15 Jul 2024 14:52:13 +0100 Subject: [PATCH] tweak cache config --- go/enclave/storage/cache_service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/go/enclave/storage/cache_service.go b/go/enclave/storage/cache_service.go index db3df207ab..4160ce17ba 100644 --- a/go/enclave/storage/cache_service.go +++ b/go/enclave/storage/cache_service.go @@ -64,6 +64,7 @@ func NewCacheService(logger gethlog.Logger) *CacheService { ristrettoCache, err := ristretto.NewCache(&ristretto.Config{ NumCounters: 10 * 10 * 1000, // 10 times the expected elements (10 caches * 1000 historic elements) MaxCost: 512 * 1024 * 1024, // allocate 512MB + BufferItems: 64, // number of keys per Get buffer. }) if err != nil { logger.Crit("Could not initialise ristretto cache", log.ErrKey, err)