Method | Description | |
---|---|---|
GetAllVaryCustomKey ( ) : string |
Get all vary by custom string
|
|
OnActionExecutedAsync ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext, |
Store the response to cache store, add CacheControl and Etag to response
|
|
OnActionExecutingAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, |
Check CacheControl request, get CacheItem, build response and return if cache available
|
Method | Description | |
---|---|---|
ApplyCacheHeaders ( |
Apply the CacheControl header to response
|
|
GetCacheResponseBuilder ( IDependencyScope scope ) : ICacheResponseBuilder |
Get ICacheResponseBuilder from IDependencyScope
|
|
GetCacheStrategy ( IDependencyScope scope, _IInvocation invocation, object>.IDictionary |
Get ICacheStrategy from IDependencyScope
|
|
GetInvocation ( System.Web.Http.Controllers.HttpActionContext actionContext ) : _IInvocation |
Get _IInvocation from HttpActionContext
|
|
GetInvocationContext ( System.Web.Http.Controllers.HttpActionContext actionContext ) : object>.IDictionary |
Get context data from HttpActionContext
|
|
HashCacheKey ( string originalCacheKey ) : string |
Make a hash string of the original senstivive cacheKey
|
|
ShouldIgnoreCache ( |
Determine whether or not should ignore all the cache settings base on the
|
Method | Description | |
---|---|---|
CreatePhoenix ( _IInvocation invocation, |
Create the phoenix object which can refresh the cache itself if StaleWhileRevalidate > 0
|
|
GetHashString ( byte content ) : string | ||
RefreshCache ( string storedKey ) : void |
protected ApplyCacheHeaders ( |
||
response | ||
request | ||
return | void |
protected GetCacheResponseBuilder ( IDependencyScope scope ) : ICacheResponseBuilder | ||
scope | IDependencyScope | |
return | ICacheResponseBuilder |
protected GetCacheStrategy ( IDependencyScope scope, _IInvocation invocation, object>.IDictionary |
||
scope | IDependencyScope | |
invocation | _IInvocation | |
invocationContext | object>.IDictionary | |
return | ICacheStrategy |
protected GetInvocation ( System.Web.Http.Controllers.HttpActionContext actionContext ) : _IInvocation | ||
actionContext | System.Web.Http.Controllers.HttpActionContext | |
return | _IInvocation |
protected GetInvocationContext ( System.Web.Http.Controllers.HttpActionContext actionContext ) : object>.IDictionary |
||
actionContext | System.Web.Http.Controllers.HttpActionContext | |
return | object>.IDictionary |
protected HashCacheKey ( string originalCacheKey ) : string | ||
originalCacheKey | string | |
return | string |
public OnActionExecutedAsync ( System.Web.Http.Filters.HttpActionExecutedContext actionExecutedContext, |
||
actionExecutedContext | System.Web.Http.Filters.HttpActionExecutedContext | |
cancellationToken | ||
return | Task |
public OnActionExecutingAsync ( System.Web.Http.Controllers.HttpActionContext actionContext, |
||
actionContext | System.Web.Http.Controllers.HttpActionContext | |
cancellationToken | ||
return | Task |
protected ShouldIgnoreCache ( |
||
cacheControl | ||
request | ||
return | bool |