C# 클래스 Flatwhite.OutputCacheAttribute

상속: MethodFilterAttribute, ICacheSettings
파일 보기 프로젝트 열기: vanthoainguyen/Flatwhite

공개 메소드들

메소드 설명
GetAllVaryCustomKey ( ) : string

Get all vary by custom string

OnMethodExecuted ( MethodExecutedContext methodExecutedContext ) : void

Save the return data from invocation to cache

OnMethodExecuting ( MethodExecutingContext methodExecutingContext ) : void

Check to see if the cache is available

OutputCacheAttribute ( ) : System

Default constructor for OutputCacheAttribute

SetCacheStrategy ( ICacheStrategy cacheStrategy ) : void

Set the custom cache strategy ICacheStrategy

비공개 메소드들

메소드 설명
CreatePhoenix ( _IInvocation invocation, CacheItem cacheItem ) : void

Create the phoenix object which can refresh the cache itself if StaleWhileRevalidate > 0 and store by key in Global.Cache.Phoenix

RefreshCache ( string storedKey ) : void

Refresh cache cake by phoenix if StaleWhileRevalidate > 0 when AutoRefresh is not enabled

메소드 상세

GetAllVaryCustomKey() 공개 메소드

Get all vary by custom string
public GetAllVaryCustomKey ( ) : string
리턴 string

OnMethodExecuted() 공개 메소드

Save the return data from invocation to cache
public OnMethodExecuted ( MethodExecutedContext methodExecutedContext ) : void
methodExecutedContext MethodExecutedContext
리턴 void

OnMethodExecuting() 공개 메소드

Check to see if the cache is available
public OnMethodExecuting ( MethodExecutingContext methodExecutingContext ) : void
methodExecutingContext MethodExecutingContext
리턴 void

OutputCacheAttribute() 공개 메소드

Default constructor for OutputCacheAttribute
public OutputCacheAttribute ( ) : System
리턴 System

SetCacheStrategy() 공개 메소드

Set the custom cache strategy ICacheStrategy
public SetCacheStrategy ( ICacheStrategy cacheStrategy ) : void
cacheStrategy ICacheStrategy
리턴 void