MemoryCacheElement.PhysicalMemoryLimitPercentage 속성

정의

캐시에서 사용할 수 있는 서버 메모리의 백분율을 가져오거나 설정합니다.

public:
 property int PhysicalMemoryLimitPercentage { int get(); void set(int value); };
[System.Configuration.ConfigurationProperty("physicalMemoryLimitPercentage", DefaultValue=0)]
[System.Configuration.IntegerValidator(MaxValue=100, MinValue=0)]
public int PhysicalMemoryLimitPercentage { get; set; }
[<System.Configuration.ConfigurationProperty("physicalMemoryLimitPercentage", DefaultValue=0)>]
[<System.Configuration.IntegerValidator(MaxValue=100, MinValue=0)>]
member this.PhysicalMemoryLimitPercentage : int with get, set
Public Property PhysicalMemoryLimitPercentage As Integer

속성 값

Int32

캐시에서 사용할 수 있는 실제 메모리를 1에서 100 사이의 정수 값으로 표현한 백분율입니다. 기본값은 0이며, 이는 MemoryCache 인스턴스가 컴퓨터에 설치된 메모리 양을 기준으로 메모리를 자체 관리한다는 것을 나타냅니다.

특성

설명

캐시 크기를 지정된 된 한도 초과 하면 메모리 캐시 구현이 캐시 항목을 제거 합니다.

에 대 한 설정 합니다 PhysicalMemoryLimit 에서 속성을 읽을 수 physicalMemoryLimitPercentage 애플리케이션 구성 파일에서 구성 특성입니다. 또는 값을 전달할 수 있습니다 시기는 MemoryCache 클래스를 초기화 합니다.

캐시를 구성하는 방법에 대한 자세한 내용은 namedCaches> 요소(캐시 설정)를 참조하세요.<

적용 대상

추가 정보