C# 클래스 Flatwhite.Strategy.CacheOutputForAllMethod

A cache strategy to cache for all methods
상속: DefaultCacheStrategy, IDynamicCacheStrategy
파일 보기 프로젝트 열기: vanthoainguyen/Flatwhite

공개 메소드들

메소드 설명
Config ( Action configuration ) : CacheOutputForAllMethod

Apply configuration to cache attribute

Duration ( uint durationSeconds ) : CacheOutputForAllMethod

Set cache duration in seconds

StaleWhileRevalidate ( uint durationSeconds ) : CacheOutputForAllMethod

Set stale while revalidate

VaryByCustom ( string customParams ) : CacheOutputForAllMethod

Set vary by custom

VaryByParam ( string @params ) : CacheOutputForAllMethod

Set vary by params

비공개 메소드들

메소드 설명
CacheOutputForAllMethod ( uint defaultDuration ) : System
IDynamicCacheStrategy ( ) : OutputCacheAttribute>>.IEnumerable

Get all attributes

메소드 상세

Config() 공개 메소드

Apply configuration to cache attribute
public Config ( Action configuration ) : CacheOutputForAllMethod
configuration Action
리턴 CacheOutputForAllMethod

Duration() 공개 메소드

Set cache duration in seconds
public Duration ( uint durationSeconds ) : CacheOutputForAllMethod
durationSeconds uint
리턴 CacheOutputForAllMethod

StaleWhileRevalidate() 공개 메소드

Set stale while revalidate
public StaleWhileRevalidate ( uint durationSeconds ) : CacheOutputForAllMethod
durationSeconds uint
리턴 CacheOutputForAllMethod

VaryByCustom() 공개 메소드

Set vary by custom
public VaryByCustom ( string customParams ) : CacheOutputForAllMethod
customParams string
리턴 CacheOutputForAllMethod

VaryByParam() 공개 메소드

Set vary by params
public VaryByParam ( string @params ) : CacheOutputForAllMethod
@params string
리턴 CacheOutputForAllMethod