Поделиться через


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>

Применяется к