Compartir a través de


DistributedCacheEntryExtensions.SetAbsoluteExpiration Método

Definición

Sobrecargas

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

Establece una fecha de expiración absoluta para la entrada de caché.

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Establece una hora de expiración absoluta, con respecto al momento actual.

SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

Source:
DistributedCacheEntryExtensions.cs
Source:
DistributedCacheEntryExtensions.cs

Establece una fecha de expiración absoluta para la entrada de caché.

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

Las opciones en las que se va a operar.

absolute
DateTimeOffset

La hora de expiración, en términos absolutos.

Devoluciones

Se aplica a

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Source:
DistributedCacheEntryExtensions.cs
Source:
DistributedCacheEntryExtensions.cs

Establece una hora de expiración absoluta, con respecto al momento actual.

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

Las opciones en las que se va a operar.

relative
TimeSpan

La hora de expiración, con respecto al momento actual.

Devoluciones

Se aplica a