次の方法で共有


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

スライド式有効期限。

戻り値

適用対象