語言

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 。 常見的 MemoryCache 實作會在快取設定 SizeLimit 時追蹤大小。

適用於