MemoryCacheStatistics.CurrentEstimatedSize 属性

定义

获取内存缓存中当前所有 Size 值的估计总和。

public:
 property Nullable<long> CurrentEstimatedSize { Nullable<long> get(); void set(Nullable<long> value); };
public long? CurrentEstimatedSize { get; init; }
member this.CurrentEstimatedSize : Nullable<int64> with get, set
Public Property CurrentEstimatedSize As Nullable(Of Long)

属性值

null如果未跟踪大小,则返回 。 每当在缓存上设置 SizeLimit 时,常见的 MemoryCache 实现会跟踪大小。

适用于