public CacheLite(ICacheScheduler scheduler = null)
        {
            _scheduler        = scheduler;
            _readerWriterLock = new ReaderWriterLockSlim();
            _store            = new Dictionary <string, CacheEntry>();

            if (_scheduler != null)
            {
                _scheduler.Subscribe += SchedulerOnSubscribe;
            }
        }
Пример #2
0
 private void ConfigureHierarchy(CacheConfiguration configuration)
 {
     this.scheduler = SchedulerBase.Factory.Create(configuration.SchedulerConfiguration, configuration.Logger);
 }