C# Class Flatwhite.Strategy.CacheOutputForAllMethod

A cache strategy to cache for all methods
Inheritance: DefaultCacheStrategy, IDynamicCacheStrategy
Afficher le fichier Open project: vanthoainguyen/Flatwhite

Méthodes publiques

Méthode 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

Méthode Description
CacheOutputForAllMethod ( uint defaultDuration ) : System
IDynamicCacheStrategy ( ) : OutputCacheAttribute>>.IEnumerable

Get all attributes

Method Details

Config() public méthode

Apply configuration to cache attribute
public Config ( Action configuration ) : CacheOutputForAllMethod
configuration Action
Résultat CacheOutputForAllMethod

Duration() public méthode

Set cache duration in seconds
public Duration ( uint durationSeconds ) : CacheOutputForAllMethod
durationSeconds uint
Résultat CacheOutputForAllMethod

StaleWhileRevalidate() public méthode

Set stale while revalidate
public StaleWhileRevalidate ( uint durationSeconds ) : CacheOutputForAllMethod
durationSeconds uint
Résultat CacheOutputForAllMethod

VaryByCustom() public méthode

Set vary by custom
public VaryByCustom ( string customParams ) : CacheOutputForAllMethod
customParams string
Résultat CacheOutputForAllMethod

VaryByParam() public méthode

Set vary by params
public VaryByParam ( string @params ) : CacheOutputForAllMethod
@params string
Résultat CacheOutputForAllMethod