MemoryCacheElement.PollingInterval Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
property TimeSpan PollingInterval { TimeSpan get(); void set(TimeSpan value); };
[System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))]
[System.Configuration.ConfigurationProperty("pollingInterval", DefaultValue="00:02:00")]
public TimeSpan PollingInterval { get; set; }
[<System.ComponentModel.TypeConverter(typeof(System.Configuration.InfiniteTimeSpanConverter))>]
[<System.Configuration.ConfigurationProperty("pollingInterval", DefaultValue="00:02:00")>]
member this.PollingInterval : TimeSpan with get, set
Public Property PollingInterval As TimeSpan
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
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈