Note

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

Access to this page requires authorization. You can try .

HybridCacheEntryOptions.LocalCacheExpiration 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.

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

Property Value

Remarks

When retrieving a cached value from an external cache store, this value will be used to calculate the local cache expiration, not exceeding the remaining overall cache lifetime.

Applies to


Feedback

Was this page helpful?