Note

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

Access to this page requires authorization. You can try .

ICacheEntry.SlidingExpiration Property

Definition

Namespace:
Microsoft.Extensions.Caching.Memory
Assembly:
Microsoft.Extensions.Caching.Abstractions.dll
Package:
Microsoft.Extensions.Caching.Abstractions v11.0.0-preview.5.26302.115
Source:
ICacheEntry.cs
Source:
ICacheEntry.cs
Source:
ICacheEntry.cs
Source:
ICacheEntry.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 sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed. This will not extend the entry lifetime beyond the absolute expiration (if set).

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

Property Value

Applies to


Feedback

Was this page helpful?