C# Class Flatwhite.Strategy.CacheOutputForAllMethod

A cache strategy to cache for all methods
Inheritance: DefaultCacheStrategy, IDynamicCacheStrategy
Show file Open project: vanthoainguyen/Flatwhite

Public Methods

Method Description
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

Private Methods

Method Description
CacheOutputForAllMethod ( uint defaultDuration ) : System
IDynamicCacheStrategy ( ) : OutputCacheAttribute>>.IEnumerable

Get all attributes

Method Details

Config() public method

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

Duration() public method

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

StaleWhileRevalidate() public method

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

VaryByCustom() public method

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

VaryByParam() public method

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