Share via


DistributedCacheEntryExtensions 클래스

정의

작업에 대한 확장 메서드를 DistributedCacheEntryOptions 제공합니다.

public ref class DistributedCacheEntryExtensions abstract sealed
public static class DistributedCacheEntryExtensions
type DistributedCacheEntryExtensions = class
Public Module DistributedCacheEntryExtensions
상속
DistributedCacheEntryExtensions

메서드

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

캐시 항목의 절대 만료 날짜를 설정합니다.

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

현재를 기준으로 절대 만료 시간을 설정합니다.

SetSlidingExpiration(DistributedCacheEntryOptions, TimeSpan)

캐시 항목이 제거되기 전에 비활성 상태(예: 액세스되지 않은 상태)로 유지될 수 있는 시간을 설정합니다. 이렇게 해도 항목 수명이 절대 만료(설정된 경우) 이후로 확장되지 않습니다.

적용 대상