MemoryCacheEntryExtensions.SetSlidingExpiration 메서드

정의

캐시 항목이 제거되기 전에 비활성(예: 액세스하지 않음)할 수 있는 기간을 설정합니다. 이렇게 하면 절대 만료(설정된 경우)를 초과하여 항목 수명이 연장되지 않습니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ SetSlidingExpiration(Microsoft::Extensions::Caching::Memory::MemoryCacheEntryOptions ^ options, TimeSpan offset);
public static Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions SetSlidingExpiration(this Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions options, TimeSpan offset);
static member SetSlidingExpiration : Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions * TimeSpan -> Microsoft.Extensions.Caching.Memory.MemoryCacheEntryOptions
<Extension()>
Public Function SetSlidingExpiration (options As MemoryCacheEntryOptions, offset As TimeSpan) As MemoryCacheEntryOptions

매개 변수

offset
TimeSpan

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

반품

MemoryCacheEntryOptions 추가 호출을 연결할 수 있도록 합니다.

적용 대상