Microsoft.Extensions.Caching.Memory.MemoryCacheOptions
Specifies options for MemoryCache.
namespace Microsoft.Extensions.Caching.Memory
{
public class MemoryCacheOptions : IOptions<MemoryCacheOptions>
{
public ISystemClock Clock { get; set; }
public TimeSpan ExpirationScanFrequency { get; set; }
public long? SizeLimit { get; set; }
public bool CompactOnMemoryPressure { get; set; }
public double CompactionPercentage { get; set; }
public bool TrackLinkedCacheEntries { get; set; }
public bool TrackStatistics { get; set; }
public MemoryCacheOptions();
}
}