Class CacheAttributeInfo
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
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.