DistributedCacheEntryExtensions.SetSlidingExpiration Methode

Definitie

Hiermee stelt u in hoe lang de cachevermelding inactief kan zijn (bijvoorbeeld niet toegankelijk) voordat deze wordt verwijderd. Hiermee wordt de levensduur van de vermelding niet verlengd na de absolute vervaldatum (indien ingesteld).

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ SetSlidingExpiration(Microsoft::Extensions::Caching::Distributed::DistributedCacheEntryOptions ^ options, TimeSpan offset);
public static Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions SetSlidingExpiration(this Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions options, TimeSpan offset);
static member SetSlidingExpiration : Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions * TimeSpan -> Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions
<Extension()>
Public Function SetSlidingExpiration (options As DistributedCacheEntryOptions, offset As TimeSpan) As DistributedCacheEntryOptions

Parameters

options
DistributedCacheEntryOptions

De opties waarop moet worden bediend.

offset
TimeSpan

De verlooptijd van de schuif.

Retouren

Van toepassing op