Cache.EffectivePercentagePhysicalMemoryLimit 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取在 ASP.NET 开始从缓存中移除项之前应用程序可使用的物理内存百分比。
public:
property long EffectivePercentagePhysicalMemoryLimit { long get(); };
public long EffectivePercentagePhysicalMemoryLimit { get; }
member this.EffectivePercentagePhysicalMemoryLimit : int64
Public ReadOnly Property EffectivePercentagePhysicalMemoryLimit As Long
属性值
可供应用程序使用的物理内存百分比。
注解
该 EffectivePercentagePhysicalMemoryLimit 属性返回应用程序可用的物理内存百分比。 当可用百分比变低时,缓存算法将开始从缓存中删除项。
EffectivePercentagePhysicalMemoryLimit可以使用缓存元素的属性来设置percentagePhysicalMemoryUsedLimit
属性,以便在应用程序的配置文件中缓存 (ASP.NET 设置架构) 元素。 percentagePhysicalMemoryUsedLimit
如果未设置属性,缓存算法将确定缓存的最大大小,并计算该EffectivePercentagePhysicalMemoryLimit属性。
EffectivePercentagePhysicalMemoryLimit.NET Framework版本 3.5 中引入。 有关详细信息,请参见版本和依赖关系。