DistributedCacheEntryExtensions.SetSlidingExpiration Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Önbellek girişinin kaldırılmadan önce ne kadar süreyle devre dışı bırakılacağını (örneğin, erişilmediğini) ayarlar. Bu, girdi ö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
Üzerinde çalıştırılacak seçenekler.
- offset
- TimeSpan
Kayan süre sonu süresi.