CacheEntryExtensions.SetSlidingExpiration(ICacheEntry, TimeSpan) Method
Definition
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.
Sets how long the cache entry can be inactive (for example, not accessed) before it will be removed. This method does not extend the entry lifetime beyond the absolute expiration (if set).
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ SetSlidingExpiration(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, TimeSpan offset);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetSlidingExpiration (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, TimeSpan offset);
static member SetSlidingExpiration : Microsoft.Extensions.Caching.Memory.ICacheEntry * TimeSpan -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetSlidingExpiration (entry As ICacheEntry, offset As TimeSpan) As ICacheEntry
Parameters
- entry
- ICacheEntry
The ICacheEntry.
Returns
The ICacheEntry for chaining.
Applies to
Vertu í samstarfi við okkur á GitHub
Heimildina fyrir þetta efni er að finna á GitHub, þar sem þú getur líka búið til og farið yfir vandamál og sameinað beiðnir. Frekari upplýsingar er að finna í framlagshandbók okkar.