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 中引入。 有关详细信息,请参见版本和依赖关系

适用于

另请参阅