public SingleElementLocalCache(CacheBuilder <FastCacheKey, V> cacheBuilder) : base(cacheBuilder) { }
public LocalLoadingCache(CacheBuilder <K, V> cacheBuilder, Func <K, V> valueLoader) : base(cacheBuilder) { Validate.Validate.Hard.IsNotNull(valueLoader); ValueLoader = valueLoader; }
public SingleElementLocalLoadingCache(CacheBuilder <FastCacheKey, V> cacheBuilder, Func <V> valueLoader) : base(cacheBuilder) { Validate.Validate.Hard.IsNotNull(valueLoader); ValueLoader = valueLoader; }
public LocalLoadingCache(CacheBuilder <K, V> cacheBuilder, Func <V> valueLoader) : this(cacheBuilder, ReferenceEquals(valueLoader, null) ? null : (Func <K, V>)(key => valueLoader.Invoke())) { }