PooledQueueCache 构造函数

定义

入池队列缓存是从池中获取资源的消息缓存

public PooledQueueCache (Orleans.Providers.Streams.Common.ICacheDataAdapter cacheDataAdapter, Microsoft.Extensions.Logging.ILogger logger, Orleans.Providers.Streams.Common.ICacheMonitor cacheMonitor, TimeSpan? cacheMonitorWriteInterval, TimeSpan? purgeMetadataInterval = default);
new Orleans.Providers.Streams.Common.PooledQueueCache : Orleans.Providers.Streams.Common.ICacheDataAdapter * Microsoft.Extensions.Logging.ILogger * Orleans.Providers.Streams.Common.ICacheMonitor * Nullable<TimeSpan> * Nullable<TimeSpan> -> Orleans.Providers.Streams.Common.PooledQueueCache
Public Sub New (cacheDataAdapter As ICacheDataAdapter, logger As ILogger, cacheMonitor As ICacheMonitor, cacheMonitorWriteInterval As Nullable(Of TimeSpan), Optional purgeMetadataInterval As Nullable(Of TimeSpan) = Nothing)

参数

cacheDataAdapter
ICacheDataAdapter

缓存数据适配器。

logger
ILogger

记录器。

cacheMonitor
ICacheMonitor

缓存监视器。

cacheMonitorWriteInterval
Nullable<TimeSpan>

缓存监视器写入间隔。 仅针对活动缓存触发。

purgeMetadataInterval
Nullable<TimeSpan>

清除缓存元数据的间隔。

适用于