ChronologicalEvictionStrategy.ShouldPurge 方法

定义

给定缓存的消息,指示是否应从缓存中清除该消息。

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

参数

cachedMessage
CachedMessage

缓存的消息。

newestCachedMessage
CachedMessage

最新的缓存消息。

nowUtc
DateTime

当前时间 (UTC)。

返回

true 如果应清除消息,则为 ; false 否则为 。

适用于