public CacheValueOf(T value) : this(value, StaticCachePolicy.CreateDefault()) { }
public ICachePolicy GetPolicyFor(object cacheKey) { return(GetPolicyElementFor(cacheKey).IfNotNull(x => x.ToPolicy(), StaticCachePolicy.CreateDefault())); }
public CacheValueOf(T value) : this(value, StaticCachePolicy.CreateDefault()) { }
public ICachePolicy GetPolicyFor(object cacheKey) { return(GetPolicyElementFor(cacheKey).IfNotNull(x => x.ToPolicy(), StaticCachePolicy.CreateDefault())); }