ChronologicalEvictionStrategy.ShouldPurge Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.