static CacheDecoratorOptions() { _defaultInstance = new CacheDecoratorOptions { IsMultiThreadProtectionOn = false, IsPausableOn = true, IsStatisticsOn = false }; }
/// <summary> /// Extends the <paramref name="cache"/> with additional behaviours /// </summary> /// <returns> /// The original <paramref name="cache"/> wrapped in one or more <see cref="CacheDecorator"/> instances /// </returns> public static ICache DecorateWith(this ICache cache, CacheDecoratorOptions options) { return(new CacheDecoratorChainBuilder().AddDecorators(cache, options)); }