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

Initializes a new instance of the CacheOptionsCacheOptionsCacheOptions class.

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

Syntax

C#

public CacheOptions(

TimeSpan slidingExpiry

)

VB

Public Sub New( _

slidingExpiry As TimeSpan _

)

C++

public:

CacheOptions(

TimeSpan slidingExpiry

)

Parameters

slidingExpiry
Type: System.TimeSpanSystem.TimeSpanSystem::TimeSpan
The sliding expiry time.

Remarks

Use this constructor when you want to specify sliding expiry.

See Also

CacheOptionsCacheOptionsCacheOptions Class
CacheOptionsNewCacheOptions Overload
Simple.Web.HttpSimple.Web.HttpSimple::Web::Http Namespace