Class CacheMemoryMonitorOptions

Options for monitoring and trimming the in-memory cache backing the default IObjectInstanceCache implementation.

Inheritance
System.Object
CacheMemoryMonitorOptions
Namespace: EPiServer.Framework.Cache
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
[Options(ConfigurationSection = "Cms")]
public class CacheMemoryMonitorOptions : Object

Constructors

CacheMemoryMonitorOptions()

Declaration
public CacheMemoryMonitorOptions()

Properties

DefaultPollInterval

The default interval between checks of the memory pressure, and potential compacting of the cache if high memory pressure is detected. The default interval is used when the the load is below thresholds, when the pressure goes above the thresholds a shorter interval may be automatically used to keep a closer look on the current memory pressure.

Declaration
public TimeSpan DefaultPollInterval { get; set; }
Property Value
Type Description
System.TimeSpan

The interval, expressed as a timespan. The default is 30 seconds.

EnableMonitor

Determines if the memory pressure should be monitored or not.

Declaration
public bool EnableMonitor { get; set; }
Property Value
Type Description
System.Boolean

true to enable monitoring; false to disable. The default is true.

MaxMemoryPressurePercentage

The application memory pressure (in percent), i.e. the amount of memory used in relation to the estimated memory available, that is considered the upper threshold. The application aims to keep memory pressure under this threshold by compacting the cache.

Declaration
public int MaxMemoryPressurePercentage { get; set; }
Property Value
Type Description
System.Int32

The max pressure in percent, the default is 90.

Extension Methods