Bagikan melalui


MemoryCacheEntryExtensions.SetAbsoluteExpiration Metode

Definisi

Overload

SetAbsoluteExpiration(MemoryCacheEntryOptions, DateTimeOffset)

Mengatur tanggal kedaluwarsa absolut untuk entri cache.

SetAbsoluteExpiration(MemoryCacheEntryOptions, TimeSpan)

Mengatur waktu kedaluwarsa absolut, relatif terhadap sekarang.

SetAbsoluteExpiration(MemoryCacheEntryOptions, DateTimeOffset)

Sumber:
MemoryCacheEntryExtensions.cs
Sumber:
MemoryCacheEntryExtensions.cs

Mengatur tanggal kedaluwarsa absolut untuk entri cache.

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

Parameter

absolute
DateTimeOffset

Waktu kedaluwarsa, dalam istilah absolut.

Mengembalikan

MemoryCacheEntryOptions Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk

SetAbsoluteExpiration(MemoryCacheEntryOptions, TimeSpan)

Sumber:
MemoryCacheEntryExtensions.cs
Sumber:
MemoryCacheEntryExtensions.cs

Mengatur waktu kedaluwarsa absolut, relatif terhadap sekarang.

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

Parameter

relative
TimeSpan

Waktu kedaluwarsa, relatif terhadap sekarang.

Mengembalikan

MemoryCacheEntryOptions Sehingga panggilan tambahan dapat dirangkai.

Berlaku untuk