public InMemoryCache(IOptions <InMemoryCacheOptions> optionsAccessor) { if (optionsAccessor == null) { throw new ArgumentNullException(nameof(optionsAccessor)); } _options = optionsAccessor.Value; }
public InMemoryCache() { _options = new InMemoryCacheOptions(); }