OutputCacheAttribute 클래스

정의

출력 캐싱에서 적절한 헤더를 설정하는 데 필요한 매개 변수를 지정합니다.

[System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)]
public sealed class OutputCacheAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class | System.AttributeTargets.Method, AllowMultiple=false, Inherited=true)>]
type OutputCacheAttribute = class
    inherit Attribute
Public NotInheritable Class OutputCacheAttribute
Inherits Attribute
상속
OutputCacheAttribute
특성

설명

이 특성에는 출력 캐시 미들웨어가 필요합니다.

생성자

OutputCacheAttribute()

출력 캐싱에서 적절한 헤더를 설정하는 데 필요한 매개 변수를 지정합니다.

속성

Duration

응답이 캐시되는 기간(초)을 가져오거나 설정합니다.

NoStore

응답을 캐시할지 여부를 결정하는 값을 가져오거나 설정합니다. true설정하면 응답이 캐시되지 않습니다.

PolicyName

캐시 정책 이름의 값을 가져오거나 설정합니다.

Tags

출력 캐시에 적용할 태그를 가져오거나 설정합니다.

VaryByHeaderNames

달라질 헤더 이름을 가져오거나 설정합니다.

VaryByQueryKeys

달라질 쿼리 키를 가져오거나 설정합니다.

VaryByRouteValueNames

달라질 경로 값 이름을 가져오거나 설정합니다.

적용 대상