EventHubQueueCache<TCachedMessage>.TryCalculateCachePressureContribution 方法

定义

cachePressureContribution 应该是介于 0-1 之间的双精度值,表示项从缓存中删除的危险程度。 0 表示没有危险,1 表示移除即将发生。

protected abstract bool TryCalculateCachePressureContribution (Orleans.Streams.StreamSequenceToken token, out double cachePressureContribution);
abstract member TryCalculateCachePressureContribution : Orleans.Streams.StreamSequenceToken * double -> bool
Protected MustOverride Function TryCalculateCachePressureContribution (token As StreamSequenceToken, ByRef cachePressureContribution As Double) As Boolean

参数

cachePressureContribution
Double

返回

适用于