Cache.EffectivePrivateBytesLimit 属性

定义

获取可用于缓存的字节数。

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

属性值

Int64

可用于缓存的字节数。

示例

EffectivePercentagePhysicalMemoryLimit

注解

EffectivePrivateBytesLimit 属性返回应用程序进程可以使用的字节数。 达到此限制后,缓存算法将开始积极清理缓存。

EffectivePrivateBytesLimit可以使用缓存元素的属性来设置privateBytesLimit属性,以便在应用程序的配置文件中缓存 (ASP.NET 设置架构) 元素。 privateBytesLimit如果未设置属性,缓存算法将确定缓存的最大大小,并且EffectivePrivateBytesLimit该属性包含算法选择的大小。

适用于