/// Returns a new, empty cache for the given [BlobMulti] storage.
Returns a new, empty cache for the given [BlobMulti] storage.
Returns a new empty cache for the given [ BlobMulti ] storage .
pub fn new(metrics: Arc<Metrics>, blob: B, cache_size_limit: Option<usize>) -> Self {
        BlobCache {
            metrics,
            blob: Arc::new(blob),
            cache: BlobCacheInner::new(cache_size_limit.unwrap_or(Self::DEFAULT_CACHE_SIZE_LIMIT)),
        }
    }
pub fn new ( metrics : Arc < Metrics > , blob : B , cache_size_limit : Option < usize > ) -> Self { BlobCache { metrics , blob : Arc :: new ( blob ) , cache : BlobCacheInner :: new ( cache_size_limit . unwrap_or ( Self :: DEFAULT_CACHE_SIZE_LIMIT ) ) , } }
Returns a new, empty cache for the given [BlobMulti] storage.
Returns a new empty cache for the given [ BlobMulti ] storage .
metrics
Arc<Metrics>
blob
B
cache_size_limit
Option<usize>