Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
MemoryCacheEntryOptions.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:
- MemoryCacheEntryOptions.cs
- Source:
- MemoryCacheEntryOptions.cs
- Source:
- MemoryCacheEntryOptions.cs
- Source:
- MemoryCacheEntryOptions.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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Feedback
Was this page helpful?
