[This is preliminary documentation and is subject to change.]

Carries information on how to cache a resource.

Inheritance Hierarchy

System.ObjectSystem.ObjectSystem::Object
  Simple.Web.Http.CacheOptionsSimple.Web.Http.CacheOptionsSimple::Web::Http::CacheOptions

Namespace: Simple.Web.HttpSimple.Web.HttpSimple::Web::Http
Assembly: Simple.Web (in Simple.Web.dll)

Syntax

C#

public class CacheOptions

VB

Public Class CacheOptions

C++

public ref class CacheOptions

The CacheOptionsCacheOptionsCacheOptions type exposes the following members.

Constructors

Name Description
CacheOptions(DateTime)New(DateTime)CacheOptions(DateTime) Initializes a new instance of the CacheOptionsCacheOptionsCacheOptions class.
CacheOptions(TimeSpan)New(TimeSpan)CacheOptions(TimeSpan) Initializes a new instance of the CacheOptionsCacheOptionsCacheOptions class.
Top

Properties

Name Description
AbsoluteExpiryAbsoluteExpiryAbsoluteExpiry Gets the absolute expiry time.
DisableDisableDisable Gets a value indicating whether caching should be disabled for a resource.
LevelLevelLevel Gets or sets a value indicating the level at which the response may be cached.
SlidingExpirySlidingExpirySlidingExpiry Gets the sliding expiry time.
VaryByHeadersVaryByHeadersVaryByHeaders Gets or sets names of headers which should be considered by the caching systems.
Top

Methods

Name Description
Equals(object)Equals(Object)Equals(Object^) Determines whether the specified Object is equal to the current Object. (Inherited from ObjectObjectObject.)
Finalize()Finalize()Finalize() Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from ObjectObjectObject.)
GetHashCode()GetHashCode()GetHashCode() Serves as a hash function for a particular type. (Inherited from ObjectObjectObject.)
GetType()GetType()GetType() Gets the Type of the current instance. (Inherited from ObjectObjectObject.)
MemberwiseClone()MemberwiseClone()MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from ObjectObjectObject.)
ToHeaderString()ToHeaderString()ToHeaderString() Formats the options as a Cache-Control header value.
ToString()ToString()ToString() Returns a string that represents the current object. (Inherited from ObjectObjectObject.)
Top

Fields

Name Description
  DisableCachingDisableCachingDisableCaching Use this single instance to disable caching.
Top

See Also

Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace