Redigera

Dela via


IPurgeObservable<TCachedMessage> Interface

Definition

IPurgeObservable is implemented by the cache to do purge related actions, and invoked by EvictionStrategy

public interface IPurgeObservable<TCachedMessage> where TCachedMessage : struct
type IPurgeObservable<'CachedMessage (requires 'CachedMessage : struct)> = interface
Public Interface IPurgeObservable(Of TCachedMessage)

Type Parameters

TCachedMessage
Derived

Properties

IsEmpty

Determine if the cache is empty

ItemCount

Message count

Newest

Newest message in the cache

Oldest

Oldest message in the cache

Methods

RemoveOldestMessage()

Remove oldest message in the cache

Applies to