MemoryCacheElement.PollingInterval Property

.NET Framework (current version)
 

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.

Namespace:   System.Runtime.Caching.Configuration
Assembly:  System.Runtime.Caching (in System.Runtime.Caching.dll)

[ConfigurationPropertyAttribute("pollingInterval", DefaultValue = "00:02:00")]
[TypeConverterAttribute(typeof(InfiniteTimeSpanConverter))]
public TimeSpan PollingInterval { get; set; }

Property Value

Type: System.TimeSpan

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.

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).

.NET Framework
Available since 4.0
Return to top
Show: