C# Класс Flatwhite.OutputCacheAttribute

Наследование: MethodFilterAttribute, ICacheSettings
Показать файл Открыть проект

Открытые методы

Метод Описание
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