Edit

Share via


ChronologicalEvictionStrategy.ShouldPurge Method

Definition

Given a cached message, indicates whether it should be purged from the cache.

protected virtual bool ShouldPurge (ref Orleans.Providers.Streams.Common.CachedMessage cachedMessage, ref Orleans.Providers.Streams.Common.CachedMessage newestCachedMessage, DateTime nowUtc);
abstract member ShouldPurge : CachedMessage * CachedMessage * DateTime -> bool
override this.ShouldPurge : CachedMessage * CachedMessage * DateTime -> bool
Protected Overridable Function ShouldPurge (ByRef cachedMessage As CachedMessage, ByRef newestCachedMessage As CachedMessage, nowUtc As DateTime) As Boolean

Parameters

cachedMessage
CachedMessage

The cached message.

newestCachedMessage
CachedMessage

The newest cached message.

nowUtc
DateTime

The current time (UTC).

Returns

true if the message should be purged, false otherwise.

Applies to