Skip to main content

StorageOptions Class

Abblix.Oidc.Server

Abblix.Oidc.Server.Features.Storages

StorageOptions Class

Provides configuration settings for cache entry behaviors in storage operations.

public record StorageOptions : System.IEquatable<Abblix.Oidc.Server.Features.Storages.StorageOptions>

Inheritance System.Object → StorageOptions

Implements System.IEquatable<StorageOptions>

Properties

StorageOptions.AbsoluteExpiration Property

The absolute expiration date and time for the cache entry. If set, the entry will expire and be removed from the cache at this specific date and time.

public System.Nullable<System.DateTimeOffset> AbsoluteExpiration { get; init; }

Property Value

System.Nullable<System.DateTimeOffset>

StorageOptions.AbsoluteExpirationRelativeToNow Property

The absolute expiration time relative to now. If set, the entry will expire after the specified duration from the time it was added or updated.

public System.Nullable<System.TimeSpan> AbsoluteExpirationRelativeToNow { get; init; }

Property Value

System.Nullable<System.TimeSpan>

StorageOptions.SlidingExpiration Property

The sliding expiration time. If set, the expiration time for the cache entry will be extended by this amount each time the entry is accessed, preventing the entry from expiring if it is frequently accessed.

public System.Nullable<System.TimeSpan> SlidingExpiration { get; init; }

Property Value

System.Nullable<System.TimeSpan>