共用方式為


MemoryPooledCache<TSerializer> 建構函式

定義

多載

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, Nullable<TimeSpan>)

記憶體資料流程提供者的集區快取

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, Logger, TSerializer, ICacheMonitor, Nullable<TimeSpan>)

記憶體資料流程提供者的集區快取

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, Nullable<TimeSpan>, Nullable<TimeSpan>)

記憶體資料流程提供者的集區快取。

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, Nullable<TimeSpan>)

來源:
MemoryPooledCache.cs

記憶體資料流程提供者的集區快取

public MemoryPooledCache (Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> bufferPool, Orleans.Providers.Streams.Common.TimePurgePredicate purgePredicate, Microsoft.Extensions.Logging.ILogger logger, TSerializer serializer, Orleans.Providers.Streams.Common.ICacheMonitor cacheMonitor, TimeSpan? monitorWriteInterval);
new Orleans.Providers.MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)> : Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> * Orleans.Providers.Streams.Common.TimePurgePredicate * Microsoft.Extensions.Logging.ILogger * 'Serializer * Orleans.Providers.Streams.Common.ICacheMonitor * Nullable<TimeSpan> -> Orleans.Providers.MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)>
Public Sub New (bufferPool As IObjectPool(Of FixedSizeBuffer), purgePredicate As TimePurgePredicate, logger As ILogger, serializer As TSerializer, cacheMonitor As ICacheMonitor, monitorWriteInterval As Nullable(Of TimeSpan))

參數

purgePredicate
TimePurgePredicate
logger
ILogger
serializer
TSerializer
cacheMonitor
ICacheMonitor
monitorWriteInterval
Nullable<TimeSpan>

監視寫入間隔。 僅針對使用中快取觸發。

適用於

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, Logger, TSerializer, ICacheMonitor, Nullable<TimeSpan>)

記憶體資料流程提供者的集區快取

public MemoryPooledCache (Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> bufferPool, Orleans.Providers.Streams.Common.TimePurgePredicate purgePredicate, Orleans.Runtime.Logger logger, TSerializer serializer, Orleans.Providers.Streams.Common.ICacheMonitor cacheMonitor, TimeSpan? monitorWriteInterval);
new Orleans.Providers.MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)> : Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> * Orleans.Providers.Streams.Common.TimePurgePredicate * Orleans.Runtime.Logger * 'Serializer * Orleans.Providers.Streams.Common.ICacheMonitor * Nullable<TimeSpan> -> Orleans.Providers.MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)>
Public Sub New (bufferPool As IObjectPool(Of FixedSizeBuffer), purgePredicate As TimePurgePredicate, logger As Logger, serializer As TSerializer, cacheMonitor As ICacheMonitor, monitorWriteInterval As Nullable(Of TimeSpan))

參數

purgePredicate
TimePurgePredicate
logger
Logger
serializer
TSerializer
cacheMonitor
ICacheMonitor
monitorWriteInterval
Nullable<TimeSpan>

監視寫入間隔。 僅針對使用中快取觸發。

適用於

MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, Nullable<TimeSpan>, Nullable<TimeSpan>)

記憶體資料流程提供者的集區快取。

public MemoryPooledCache (Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> bufferPool, Orleans.Providers.Streams.Common.TimePurgePredicate purgePredicate, Microsoft.Extensions.Logging.ILogger logger, TSerializer serializer, Orleans.Providers.Streams.Common.ICacheMonitor cacheMonitor, TimeSpan? monitorWriteInterval, TimeSpan? purgeMetadataInterval);
new Orleans.Providers.MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)> : Orleans.Providers.Streams.Common.IObjectPool<Orleans.Providers.Streams.Common.FixedSizeBuffer> * Orleans.Providers.Streams.Common.TimePurgePredicate * Microsoft.Extensions.Logging.ILogger * 'Serializer * Orleans.Providers.Streams.Common.ICacheMonitor * Nullable<TimeSpan> * Nullable<TimeSpan> -> Orleans.Providers.MemoryPooledCache<'Serializer (requires 'Serializer : null and 'Serializer :> Orleans.Providers.IMemoryMessageBodySerializer)>
Public Sub New (bufferPool As IObjectPool(Of FixedSizeBuffer), purgePredicate As TimePurgePredicate, logger As ILogger, serializer As TSerializer, cacheMonitor As ICacheMonitor, monitorWriteInterval As Nullable(Of TimeSpan), purgeMetadataInterval As Nullable(Of TimeSpan))

參數

bufferPool
IObjectPool<FixedSizeBuffer>

緩衝集區。

purgePredicate
TimePurgePredicate

清除述詞。

logger
ILogger

登入程式。

serializer
TSerializer

序列化程式。

cacheMonitor
ICacheMonitor

快取監視器。

monitorWriteInterval
Nullable<TimeSpan>

監視器寫入間隔。

purgeMetadataInterval
Nullable<TimeSpan>

適用於