public CacheLite(ICacheScheduler scheduler = null) { _scheduler = scheduler; _readerWriterLock = new ReaderWriterLockSlim(); _store = new Dictionary <string, CacheEntry>(); if (_scheduler != null) { _scheduler.Subscribe += SchedulerOnSubscribe; } }
private void ConfigureHierarchy(CacheConfiguration configuration) { this.scheduler = SchedulerBase.Factory.Create(configuration.SchedulerConfiguration, configuration.Logger); }