SimpleQueueCache
class
Namespace: Orleans.Providers.Streams.Common
A queue cache that keeps items in memory.
public class SimpleQueueCache : IQueueCache, IQueueFlowControllerConstructors
SimpleQueueCache(int, ILogger)Initializes a new instance of theSimpleQueueCacheclass.
Properties
SizeGets the number of items in the cache.
Methods
AddToCache(IList<IBatchContainer>)Adds messages to the cache.GetCacheCursor(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.IsUnderPressureReturnstrueif this cache is under pressure,falseotherwise.TryPurgeFromCache(IList<IBatchContainer>)Requests that the cache purge any items that can be purged.
