다음을 통해 공유


DistributedCacheEntryExtensions.SetAbsoluteExpiration 메서드

정의

오버로드

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

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

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

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

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

Source:
DistributedCacheEntryExtensions.cs
Source:
DistributedCacheEntryExtensions.cs
Source:
DistributedCacheEntryExtensions.cs

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

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

매개 변수

options
DistributedCacheEntryOptions

작업할 옵션입니다.

absolute
DateTimeOffset

절대값으로 정의된 만료 시간입니다.

반환

적용 대상

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Source:
DistributedCacheEntryExtensions.cs
Source:
DistributedCacheEntryExtensions.cs
Source:
DistributedCacheEntryExtensions.cs

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

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

매개 변수

options
DistributedCacheEntryOptions

작업할 옵션입니다.

relative
TimeSpan

현재 기준 만료 시간입니다.

반환

적용 대상