다음을 통해 공유


CacheEntryExtensions.SetAbsoluteExpiration 메서드

정의

오버로드

SetAbsoluteExpiration(ICacheEntry, DateTimeOffset)

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

SetAbsoluteExpiration(ICacheEntry, TimeSpan)

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

SetAbsoluteExpiration(ICacheEntry, DateTimeOffset)

Source:
CacheEntryExtensions.cs
Source:
CacheEntryExtensions.cs
Source:
CacheEntryExtensions.cs
Source:
CacheEntryExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ SetAbsoluteExpiration(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, DateTimeOffset absolute);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetAbsoluteExpiration (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, DateTimeOffset absolute);
static member SetAbsoluteExpiration : Microsoft.Extensions.Caching.Memory.ICacheEntry * DateTimeOffset -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetAbsoluteExpiration (entry As ICacheEntry, absolute As DateTimeOffset) As ICacheEntry

매개 변수

absolute
DateTimeOffset

절대값으로 정의된 만료 시간을 나타내는 DateTimeOffset입니다.

반환

연결할 ICacheEntry입니다.

적용 대상

SetAbsoluteExpiration(ICacheEntry, TimeSpan)

Source:
CacheEntryExtensions.cs
Source:
CacheEntryExtensions.cs
Source:
CacheEntryExtensions.cs
Source:
CacheEntryExtensions.cs

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Caching::Memory::ICacheEntry ^ SetAbsoluteExpiration(Microsoft::Extensions::Caching::Memory::ICacheEntry ^ entry, TimeSpan relative);
public static Microsoft.Extensions.Caching.Memory.ICacheEntry SetAbsoluteExpiration (this Microsoft.Extensions.Caching.Memory.ICacheEntry entry, TimeSpan relative);
static member SetAbsoluteExpiration : Microsoft.Extensions.Caching.Memory.ICacheEntry * TimeSpan -> Microsoft.Extensions.Caching.Memory.ICacheEntry
<Extension()>
Public Function SetAbsoluteExpiration (entry As ICacheEntry, relative As TimeSpan) As ICacheEntry

매개 변수

relative
TimeSpan

현재 기준 만료 시간을 나타내는 TimeSpan입니다.

반환

연결할 ICacheEntry입니다.

적용 대상