Show / Hide Table of Contents

Class CacheEntryOptions

Provides the cache options for an entry in ICache.

Inheritance
Object
CacheEntryOptions
Inherited Members
Object.Equals(Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IRM.Extensions.Caching
Assembly: IRM.Extensions.Caching.dll
Syntax
public class CacheEntryOptions

Properties

AbsoluteExpiration

Gets or sets an absolute expiration date for the cache entry.

Declaration
public DateTimeOffset? AbsoluteExpiration { get; set; }
Property Value
System.Nullable<System.DateTimeOffset>

AbsoluteExpirationRelativeToNow

Gets or sets an absolute expiration time, relative to now.

Declaration
public TimeSpan? AbsoluteExpirationRelativeToNow { get; set; }
Property Value
System.Nullable<TimeSpan>

SlidingExpiration

Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set).

Declaration
public TimeSpan? SlidingExpiration { get; set; }
Property Value
System.Nullable<TimeSpan>

Back to top Generated by DocFX