Cache.EffectivePercentagePhysicalMemoryLimit 屬性

定義

取得應用程式可以消耗的實體記憶體百分比,超過這個百分比,ASP.NET 就會開始移除快取區中的項目。

public:
 property long EffectivePercentagePhysicalMemoryLimit { long get(); };
public long EffectivePercentagePhysicalMemoryLimit { get; }
member this.EffectivePercentagePhysicalMemoryLimit : int64
Public ReadOnly Property EffectivePercentagePhysicalMemoryLimit As Long

屬性值

Int64

應用程式可用的實體記憶體百分比。

備註

屬性 EffectivePercentagePhysicalMemoryLimit 會傳回應用程式可用的實體記憶體百分比。 當可用的百分比變低時,快取演算法會開始從快取中移除專案。

EffectivePercentagePhysicalMemoryLimit屬性可以使用快取元素的 屬性來設定 percentagePhysicalMemoryUsedLimit以 (ASP.NET 設定在應用程式的組態檔中快取架構) 元素。 percentagePhysicalMemoryUsedLimit如果未設定屬性,快取演算法會決定快取的大小上限,並 EffectivePercentagePhysicalMemoryLimit 計算屬性。

EffectivePercentagePhysicalMemoryLimit.NET Framework 3.5 版引進。 如需詳細資訊,請參閱版本和相依性

適用於

另請參閱