<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="11.0.0-preview.2.26159.112" />

Microsoft.Extensions.Caching.Memory.MemoryCacheOptions

public class MemoryCacheOptions : IOptions<MemoryCacheOptions>
Specifies options for MemoryCache.
public ISystemClock Clock { get; set; }

Gets or sets the clock used by the cache for expiration.

public double CompactionPercentage { get; set; }

Gets or sets the amount the cache is compacted by when the maximum size is exceeded.

public bool CompactOnMemoryPressure { get; set; }

Gets or sets a value that indicates whether the cache is compacted when the maximum size is exceeded.

public TimeSpan ExpirationScanFrequency { get; set; }

Gets or sets the minimum length of time between successive scans for expired items.

public long? SizeLimit { get; set; }

Gets or sets the maximum size of the cache.

public bool TrackLinkedCacheEntries { get; set; }

Gets or sets a value that indicates whether linked entries are tracked.

public bool TrackStatistics { get; set; }

Gets or sets a value that indicates whether memory cache statistics are tracked.