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입니다.

적용 대상