ChronologicalEvictionStrategy 构造函数

定义

初始化 ChronologicalEvictionStrategy 类的新实例。

public ChronologicalEvictionStrategy (Microsoft.Extensions.Logging.ILogger logger, Orleans.Providers.Streams.Common.TimePurgePredicate timePurage, Orleans.Providers.Streams.Common.ICacheMonitor cacheMonitor, TimeSpan? monitorWriteInterval);
new Orleans.Providers.Streams.Common.ChronologicalEvictionStrategy : Microsoft.Extensions.Logging.ILogger * Orleans.Providers.Streams.Common.TimePurgePredicate * Orleans.Providers.Streams.Common.ICacheMonitor * Nullable<TimeSpan> -> Orleans.Providers.Streams.Common.ChronologicalEvictionStrategy
Public Sub New (logger As ILogger, timePurage As TimePurgePredicate, cacheMonitor As ICacheMonitor, monitorWriteInterval As Nullable(Of TimeSpan))

参数

logger
ILogger

记录器。

timePurage
TimePurgePredicate

基于时间的清除谓词。

cacheMonitor
ICacheMonitor

缓存监视器。

monitorWriteInterval
Nullable<TimeSpan>

“写入定期统计信息的间隔。 仅针对活动缓存触发。

适用于