API reference
API reference
Select your platform
No SDKs available
No versions available

RingDictionaryBuffer Class

This class will maintain a cache of entries and the oldest ones will expire when it runs out of space. Each time an item is added to a key, that key's freshness is refreshed. Each key is associated with a list of entries.
Others
TKey
The key type.
TValue
The value type.

Fields

ICollection< TValue > this[TKey key][Get]

Member Functions

RingDictionaryBuffer
( int capacity )
Adds an entry to the key. This also updates the "freshness" of the entry.
Parameters
key
The key.
value
The value to add.
unique
Will only add the value if it does not already exist.
Returns
True if the key value was added. False otherwise.
Returns true if the key exists in the buffer.
Parameters
key
The key to check.
Returns
True if the key exists in the buffer. False otherwise.
Drain all the entries from the buffer that match a given key and return them.
Parameters
key
The key we are extracting.
Returns
All the entries in the buffer for that specific key.
Drain all the entries from the buffer and return them.
Returns
All the entries in the buffer ordered by the key (e.g. correlation IDs).
Clears the buffer.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon