Partilhar via


DistributedCacheEntryExtensions.SetAbsoluteExpiration Método

Definição

Sobrecargas

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

Define uma data de validade absoluta para a entrada de cache.

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Define um horário de término absoluto relativo a agora.

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

Origem:
DistributedCacheEntryExtensions.cs
Origem:
DistributedCacheEntryExtensions.cs
Origem:
DistributedCacheEntryExtensions.cs

Define uma data de validade absoluta para a entrada de cache.

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

Parâmetros

options
DistributedCacheEntryOptions

As opções a serem operadas.

absolute
DateTimeOffset

O horário de término em termos absolutos.

Retornos

Aplica-se a

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Origem:
DistributedCacheEntryExtensions.cs
Origem:
DistributedCacheEntryExtensions.cs
Origem:
DistributedCacheEntryExtensions.cs

Define um horário de término absoluto relativo a agora.

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

Parâmetros

options
DistributedCacheEntryOptions

As opções a serem operadas.

relative
TimeSpan

A hora de término em relação ao momento presente.

Retornos

Aplica-se a