Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

HybridCacheEntryOptions.Expiration Property

Definition

Namespace:
Microsoft.Extensions.Caching.Hybrid
Assembly:
Microsoft.Extensions.Caching.Abstractions.dll
Package:
Microsoft.Extensions.Caching.Abstractions v11.0.0-preview.5.26302.115
Source:
HybridCacheEntryOptions.cs
Source:
HybridCacheEntryOptions.cs
Source:
HybridCacheEntryOptions.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or set the overall cache duration of this entry, passed to the backend distributed cache.

public:
 property Nullable<TimeSpan> Expiration { Nullable<TimeSpan> get(); void set(Nullable<TimeSpan> value); };
public TimeSpan? Expiration { get; init; }
member this.Expiration : Nullable<TimeSpan> with get, set
Public Property Expiration As Nullable(Of TimeSpan)

Property Value

Applies to


Feedback

Was this page helpful?