Cache.EffectivePercentagePhysicalMemoryLimit 属性


获取在 ASP.NET 开始从缓存中移除项之前应用程序可使用的物理内存百分比。Gets the percentage of physical memory that can be consumed by an application before ASP.NET starts removing items from the cache.

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


可供应用程序使用的物理内存百分比。The percentage of physical memory available to the application.


EffectivePercentagePhysicalMemoryLimit属性返回应用程序可用的物理内存百分比。The EffectivePercentagePhysicalMemoryLimit property returns the percentage of physical memory that is available to the application. 当可用百分比降低时, 缓存算法会开始从缓存中删除项。When the available percentage becomes low, the cache algorithm begins removing items from the cache.

可以在应用程序的配置文件percentagePhysicalMemoryUsedLimit中, 将属性设置为缓存元素的缓存元素(ASP.NET设置架构)元素的特性。EffectivePercentagePhysicalMemoryLimit The EffectivePercentagePhysicalMemoryLimit property can be set with the percentagePhysicalMemoryUsedLimit attribute of the cache Element for caching (ASP.NET Settings Schema) element in the application's configuration file. 如果未percentagePhysicalMemoryUsedLimit设置该属性, 则缓存算法将确定缓存的最大大小, EffectivePercentagePhysicalMemoryLimit并计算属性。If the percentagePhysicalMemoryUsedLimit attribute is not set, the cache algorithm determines the maximum size of the cache, and the EffectivePercentagePhysicalMemoryLimit property is calculated.

EffectivePercentagePhysicalMemoryLimit.NET Framework 版本3.5 中引入。EffectivePercentagePhysicalMemoryLimit is introduced in the .NET Framework version 3.5. 有关详细信息,请参见版本和依赖关系For more information, see Versions and Dependencies.