From 065a9002a0f8bde7fdb7e58f28e9550f3131552d Mon Sep 17 00:00:00 2001 From: William Petit Date: Fri, 1 Dec 2023 15:20:12 +0100 Subject: [PATCH] fix(storage): use missing cache driver options --- pkg/storage/driver/cache/blob_store.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/storage/driver/cache/blob_store.go b/pkg/storage/driver/cache/blob_store.go index fa6a331..d51d78a 100644 --- a/pkg/storage/driver/cache/blob_store.go +++ b/pkg/storage/driver/cache/blob_store.go @@ -72,6 +72,8 @@ func NewBlobStore(store storage.BlobStore, funcs ...OptionFunc) (*BlobStore, err cacheConfig := bigcache.DefaultConfig(options.CacheTTL) cacheConfig.Logger = &cacheLogger{} + cacheConfig.HardMaxCacheSize = options.BlobCacheMaxMemorySize + cacheConfig.Shards = options.BlobCacheShards contentCache, err := bigcache.New(context.Background(), cacheConfig) if err != nil {