Share via


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

슬라이딩 만료 시간입니다.

반환

적용 대상