DistributedCacheEntryExtensions Classe

Definição

Fornece métodos de extensão para DistributedCacheEntryOptions operações.

public ref class DistributedCacheEntryExtensions abstract sealed
public static class DistributedCacheEntryExtensions
type DistributedCacheEntryExtensions = class
Public Module DistributedCacheEntryExtensions
Herança
DistributedCacheEntryExtensions

Métodos

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.

SetSlidingExpiration(DistributedCacheEntryOptions, TimeSpan)

Define por quanto tempo a entrada de cache pode ficar inativa (por exemplo, não acessada) antes de ser removida. Isso não estenderá o tempo de vida da entrada além do término absoluto (se definido).

Aplica-se a