Aracılığıyla paylaş


DistributedCacheEntryExtensions.SetSlidingExpiration Yöntem

Tanım

Önbellek girişinin kaldırılmadan önce ne kadar süreyle devre dışı bırakılacağını (örn. erişilmeyeceğini) ayarlar. Bu, giriş ömrünü mutlak süre sonunun (ayarlandıysa) ötesine uzatmaz.

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

Parametreler

options
DistributedCacheEntryOptions

Çalıştırılacak seçenekler.

offset
TimeSpan

Kayan süre sonu.

Döndürülenler

Şunlara uygulanır