fix(storage): use missing cache driver options
arcad/edge/pipeline/head This commit looks good Details

This commit is contained in:
wpetit 2023-12-01 15:20:12 +01:00
parent 83a1e89665
commit 065a9002a0
1 changed files with 2 additions and 0 deletions

View File

@ -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 {