MemoryPooledCache<TSerializer>
class
Namespace: Orleans.Providers
Pooled cache for memory stream provider
public class MemoryPooledCache<TSerializer> : ICacheDataAdapter, IQueueCache, IQueueFlowController where TSerializer : class, Orleans.Providers.IMemoryMessageBodySerializerConstructors
MemoryPooledCache<TSerializer>(IObjectPool<FixedSizeBuffer>, TimePurgePredicate, ILogger, TSerializer, ICacheMonitor, TimeSpan?, TimeSpan?)Pooled cache for memory stream provider.
Methods
AddToCache(IList<IBatchContainer>)Adds messages to the cache.GetBatchContainer(CachedMessage)Converts a cached message to a batch container for deliveryGetCacheCursor(StreamId, StreamSequenceToken)Acquire a stream message cursor. This can be used to retrieve messages from the cache starting at the location indicated by the provided token.GetMaxAddCountGets the maximum number of items that can be added.GetSequenceToken(CachedMessage)Gets the stream sequence token from a cached message.IsUnderPressureReturnstrueif this cache is under pressure,falseotherwise.TryPurgeFromCache(IList<IBatchContainer>)Requests that the cache purge any items that can be purged.
