Class HttpCacheableOptions
Specifies options that is related to the HttpCacheableFilter.
Inheritance
System.Object
HttpCacheableOptions
Namespace: Cuemon.AspNetCore.Mvc.Filters.Cacheable
Assembly: Cuemon.AspNetCore.Mvc.dll
Syntax
public class HttpCacheableOptions
Constructors
| Improve this DocHttpCacheableOptions()
Initializes a new instance of the HttpCacheableOptions class.
Declaration
public HttpCacheableOptions()
Remarks
The following table shows the initial property values for an instance of HttpCacheableOptions.
Property | Initial Value |
---|---|
Filters | new List{ICacheableAsyncResultFilter}() |
CacheControl | new CacheControlHeaderValue() { MaxAge = TimeSpan.FromHours(24), MustRevalidate = true, Private = true }; |
Properties
| Improve this DocCacheControl
Gets or sets the Cache-Control header that is applied to objects implementing the ICacheableObjectResult interface.
Declaration
public CacheControlHeaderValue CacheControl { get; set; }
Property Value
Type | Description |
---|---|
Microsoft.Net.Http.Headers.CacheControlHeaderValue | The Cache-Control header that is applied to objects implementing the ICacheableObjectResult interface. |
Filters
Gets the filters that will be invoked one by one in OnResultExecutionAsync(ResultExecutingContext, ResultExecutionDelegate).
Declaration
public IList<ICacheableAsyncResultFilter> Filters { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<ICacheableAsyncResultFilter> | The filters that will be invoked by HttpCacheableFilter. |
UseCacheControl
Gets a value indicating whether this instance has an CacheControl.
Declaration
public bool UseCacheControl { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
|