Class KeyCacheOptions
- Namespace
- Excalibur.Compliance
- Assembly
- Excalibur.Compliance.Abstractions.dll
Options for configuring key caching behavior.
public sealed record KeyCacheOptions : IEquatable<KeyCacheOptions>
- Inheritance
-
KeyCacheOptions
- Implements
- Inherited Members
Properties
AutoRefreshThreshold
Gets the threshold before expiration at which to trigger auto-refresh.
public TimeSpan AutoRefreshThreshold { get; init; }
Property Value
- TimeSpan
Default is 30 seconds.
Default
Gets the default options.
public static KeyCacheOptions Default { get; }
Property Value
DefaultTtl
Gets the default time-to-live for cached key metadata.
public TimeSpan DefaultTtl { get; init; }
Property Value
- TimeSpan
Default is 5 minutes.
EnableAutoRefresh
Gets a value indicating whether to automatically refresh entries before expiration.
public bool EnableAutoRefresh { get; init; }
Property Value
MaxEntries
Gets the maximum number of entries to cache.
public int MaxEntries { get; init; }
Property Value
- int
Default is 1000.
UseSlidingExpiration
Gets a value indicating whether to use sliding expiration. When true, the TTL resets on each access.
public bool UseSlidingExpiration { get; init; }
Property Value
- bool
Default is false (absolute expiration).