Table of Contents

CacheInvalidation Constructor

Definition

Namespace
Cuemon.Runtime.Caching
Assemblies
Cuemon.Runtime.Caching.dll
Source
src/Cuemon.Runtime.Caching/CacheInvalidation.cs

CacheInvalidation(DateTime)

Initializes a new instance of the CacheInvalidation class.

public CacheInvalidation(DateTime absoluteExpiration)

Parameters

absoluteExpiration DateTime

The absolute expiration date time value from when the cached value becomes invalid and is removed from the cache.

CacheInvalidation(IEnumerable<IDependency>)

Initializes a new instance of the CacheInvalidation class.

public CacheInvalidation(IEnumerable<IDependency> dependencies)

Parameters

dependencies IEnumerable<IDependency>

A sequence of IDependency implementations that monitors changes in the state of the data which a cache entry depends on. If a state change is registered, the cached value becomes invalid and is removed from the cache.

CacheInvalidation(TimeSpan)

Initializes a new instance of the CacheInvalidation class.

public CacheInvalidation(TimeSpan slidingExpiration)

Parameters

slidingExpiration TimeSpan

The sliding expiration time from when the cached value becomes invalid and is removed from the cache.