Show / Hide Table of Contents

    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 Doc

    HttpCacheableOptions()

    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.

    PropertyInitial Value
    Filtersnew List{ICacheableAsyncResultFilter}()
    CacheControlnew CacheControlHeaderValue() { MaxAge = TimeSpan.FromHours(24), MustRevalidate = true, Private = true };

    Properties

    | Improve this Doc

    CacheControl

    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.

    | Improve this Doc

    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.

    | Improve this Doc

    UseCacheControl

    Gets a value indicating whether this instance has an CacheControl.

    Declaration
    public bool UseCacheControl { get; }
    Property Value
    Type Description
    System.Boolean

    true if this instance has an CacheControl; otherwise, false.

    Extension Methods

    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Action<TimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Byte[], Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, Byte[]>, Action<ContentBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Byte[], Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, DateTime, Func<T, Byte[]>, Action<ContentTimeBasedOptions>)
    CacheableObjectResultExtensions.ToCacheableObjectResult<T>(T, Func<T, DateTime>, Byte[], Action<ContentTimeBasedOptions>)
    • Improve this Doc
    • View Source
    Back to top Copyright 2008-2018 Weubphoria. All rights reserved.
    Generated by DocFX