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