Exemple #1
0
        public InMemoryCache(IOptions <InMemoryCacheOptions> optionsAccessor)
        {
            if (optionsAccessor == null)
            {
                throw new ArgumentNullException(nameof(optionsAccessor));
            }

            _options = optionsAccessor.Value;
        }
Exemple #2
0
 public InMemoryCache()
 {
     _options = new InMemoryCacheOptions();
 }