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

Nome Description
SetAbsoluteExpiration(DistributedCacheEntryOptions, DateTimeOffset)

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

SetAbsoluteExpiration(DistributedCacheEntryOptions, TimeSpan)

Define um tempo de expiração absoluto, em relação 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 da expiração absoluta (se definido).

Aplica-se a