Class OpenSettingsMemoryCache
- Namespace
- OpenSettings.Services.MemoryCache
- Assembly
- OpenSettings.dll
Represents a custom implementation of the MemoryCache to avoid conflicts with the default OpenSettings.Services.MemoryCache.
public class OpenSettingsMemoryCache : MemoryCache, IMemoryCache, IDisposable
- Inheritance
-
OpenSettingsMemoryCache
- Implements
- Inherited Members
Constructors
OpenSettingsMemoryCache(IOptions<MemoryCacheOptions>)
Initializes a new instance of the OpenSettingsMemoryCache class using the provided options for memory cache configuration.
public OpenSettingsMemoryCache(IOptions<MemoryCacheOptions> optionsAccessor)
Parameters
optionsAccessor
IOptions<MemoryCacheOptions>The IOptions<TOptions> used to configure the memory cache.
OpenSettingsMemoryCache(IOptions<MemoryCacheOptions>, ILoggerFactory)
Initializes a new instance of the OpenSettingsMemoryCache class using the provided options and logger factory for memory cache configuration.
public OpenSettingsMemoryCache(IOptions<MemoryCacheOptions> optionsAccessor, ILoggerFactory loggerFactory)
Parameters
optionsAccessor
IOptions<MemoryCacheOptions>The IOptions<TOptions> used to configure the memory cache.
loggerFactory
ILoggerFactoryThe ILoggerFactory used to create loggers for the memory cache operations.