DistributedCacheEntryExtensions.SetSlidingExpiration メソッド

定義

キャッシュ エントリを削除するまでに非アクティブ (アクセスできないなど) できる時間を設定します。 これにより、絶対有効期限 (設定されている場合) を超えてエントリの有効期間が延長されることはありません。

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

パラメーター

options
DistributedCacheEntryOptions

操作するオプション。

offset
TimeSpan

スライド式の有効期限。

返品

適用対象