#### [Abblix\.Oidc\.Server](https://www.abblix.com/en/docs/api/abblix-oidc-server 'index')
### [Abblix\.Oidc\.Server\.Features\.Storages](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages 'Abblix\.Oidc\.Server\.Features\.Storages')

## StorageOptions Class

Provides configuration settings for cache entry behaviors in storage operations\.

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

Inheritance [System\.Object](https://learn.microsoft.com/en-us/dotnet/api/system.object 'System\.Object') → StorageOptions

Implements [System\.IEquatable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')[StorageOptions](https://www.abblix.com/en/docs/api/abblix-oidc-server/Abblix.Oidc.Server.Features.Storages.StorageOptions 'Abblix\.Oidc\.Server\.Features\.Storages\.StorageOptions')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.iequatable-1 'System\.IEquatable\`1')
### Properties

## StorageOptions\.AbsoluteExpiration Property {#Abblix.Oidc.Server.Features.Storages.StorageOptions.AbsoluteExpiration}

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\.

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

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.DateTimeOffset](https://learn.microsoft.com/en-us/dotnet/api/system.datetimeoffset 'System\.DateTimeOffset')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')

## StorageOptions\.AbsoluteExpirationRelativeToNow Property {#Abblix.Oidc.Server.Features.Storages.StorageOptions.AbsoluteExpirationRelativeToNow}

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\.

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

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')

## StorageOptions\.SlidingExpiration Property {#Abblix.Oidc.Server.Features.Storages.StorageOptions.SlidingExpiration}

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\.

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

#### Property Value
[System\.Nullable&lt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')[System\.TimeSpan](https://learn.microsoft.com/en-us/dotnet/api/system.timespan 'System\.TimeSpan')[&gt;](https://learn.microsoft.com/en-us/dotnet/api/system.nullable-1 'System\.Nullable\`1')
