Table of Contents

Class CacheAttributeInfo

Namespace
Excalibur.Dispatch.Caching
Assembly
Excalibur.Dispatch.dll

Information about cache attributes.

public sealed class CacheAttributeInfo
Inheritance
CacheAttributeInfo
Inherited Members
Extension Methods

Properties

KeyPrefix

Gets or sets the cache key prefix.

public string? KeyPrefix { get; set; }

Property Value

string

The optional key prefix used when composing cache keys.

Name

Gets or sets the attribute name.

public string Name { get; set; }

Property Value

string

The cache attribute identifier.

Exceptions

ArgumentNullException

Thrown when set to null.

SlidingExpiration

Gets or sets a value indicating whether to use sliding expiration.

public bool SlidingExpiration { get; set; }

Property Value

bool

true when the cache entry uses sliding expiration; otherwise, false.

TtlSeconds

Gets or sets the Time To Live in seconds.

public int TtlSeconds { get; set; }

Property Value

int

The cache entry lifetime in seconds.

Exceptions

ArgumentOutOfRangeException

Thrown when set to a negative value.