public DoubleCacheManager( ICustomMemCache memoryCache, IDistributedCache distributedCache, IOptions <CachingOptions> cachingOptions) { _memoryCachingManager = new MemoryCachingManager(memoryCache, cachingOptions); _distributedCacheManager = new DistributedCacheManager(distributedCache, cachingOptions); }
public MemoryCachingManager( ICustomMemCache cache, IOptions <CachingOptions> cachingOptions) { _cache = cache.Cache; DefaultTimeSpan = cachingOptions.Value.DefaultTimeSpan ?? TimeSpan.FromHours(1); UseRollingIntervalAsDefault = cachingOptions.Value.UseRollingIntervalAsDefault; DefaultMemoryEntryCacheSize = cachingOptions.Value.DefaultMemoryEntryCacheSize ?? 1; }
public CachingManager(ICustomMemCache cache) { _cache = cache.Cache; }