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

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