MemoryCacheElement.PollingInterval Property

Definition

Gets or sets a value that indicates the time interval after which the cache implementation compares the current memory load against the absolute and percentage-based memory limits that are set for the cache instance.

[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("pollingInterval", DefaultValue="00:02:00")]
public TimeSpan PollingInterval { get; set; }

Property Value

The time interval after which the cache implementation compares the current memory load against the absolute and percentage-based memory limits that are set for the cache instance. The default is two minutes.

Attributes

Remarks

The PollingInterval property corresponds to the pollingInterval configuration attribute of the namedCaches element. The settings for this configuration attribute are specified in the format HH:MM:SS and can be read from the pollingInterval configuration attribute in the application configuration. Alternatively, the value can be passed when the MemoryCache class is initialized.

For more information about how to configure the cache, see <namedCaches> Element (Cache Settings).

Applies to

Prodotto Versioni
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also