MemoryCacheEntryOptions Classe
Definição
Representa as opções de cache aplicadas a uma entrada da instância de IMemoryCache.Represents the cache options applied to an entry of the IMemoryCache instance.
public ref class MemoryCacheEntryOptions
public class MemoryCacheEntryOptions
type MemoryCacheEntryOptions = class
Public Class MemoryCacheEntryOptions
- Herança
-
MemoryCacheEntryOptions
Construtores
| MemoryCacheEntryOptions() |
Propriedades
| AbsoluteExpiration |
Obtém ou define uma data de validade absoluta para a entrada de cache.Gets or sets an absolute expiration date for the cache entry. |
| AbsoluteExpirationRelativeToNow |
Obtém ou define um horário de término absoluto relativo a agora.Gets or sets an absolute expiration time, relative to now. |
| ExpirationTokens |
Obtém as instâncias do IChangeToken que fazem com que a entrada de cache expire.Gets the IChangeToken instances which cause the cache entry to expire. |
| PostEvictionCallbacks |
Obtém ou define os retornos de chamada que serão acionados depois que a entrada de cache for removida do cache.Gets or sets the callbacks will be fired after the cache entry is evicted from the cache. |
| Priority |
Obtém ou define a prioridade para manter a entrada de cache no cache durante uma limpeza disparada por pressão de memória.Gets or sets the priority for keeping the cache entry in the cache during a memory pressure triggered cleanup. O padrão é Normal.The default is Normal. |
| Size |
Obtém ou define o tamanho do valor da entrada de cache.Gets or sets the size of the cache entry value. |
| SlidingExpiration |
Obtém ou define por quanto tempo uma entrada de cache pode ficar inativa (por exemplo, não acessada) antes de ser removida.Gets or sets how long a cache entry can be inactive (e.g. not accessed) before it will be removed. Isso não estenderá o tempo de vida da entrada além do término absoluto (se definido).This will not extend the entry lifetime beyond the absolute expiration (if set). |
Métodos
| Equals(Object) |
Determina se o objeto especificado é igual ao objeto atual.Determines whether the specified object is equal to the current object. (Herdado de Object) |
| GetHashCode() |
Serve como a função de hash padrão.Serves as the default hash function. (Herdado de Object) |
| GetType() |
Obtém o Type da instância atual.Gets the Type of the current instance. (Herdado de Object) |
| MemberwiseClone() |
Cria uma cópia superficial do Object atual.Creates a shallow copy of the current Object. (Herdado de Object) |
| ToString() |
Retorna uma cadeia de caracteres que representa o objeto atual.Returns a string that represents the current object. (Herdado de Object) |
Métodos de Extensão
| AddExpirationToken(MemoryCacheEntryOptions, IChangeToken) |
Expirará a entrada de cache se o IChangeToken fornecido expirar.Expire the cache entry if the given IChangeToken expires. |
| RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate) |
O retorno de chamada fornecido será acionado depois que a entrada de cache for removida do cache.The given callback will be fired after the cache entry is evicted from the cache. |
| RegisterPostEvictionCallback(MemoryCacheEntryOptions, PostEvictionDelegate, Object) |
O retorno de chamada fornecido será acionado depois que a entrada de cache for removida do cache.The given callback will be fired after the cache entry is evicted from the cache. |
| SetAbsoluteExpiration(MemoryCacheEntryOptions, DateTimeOffset) |
Define uma data de validade absoluta para a entrada de cache.Sets an absolute expiration date for the cache entry. |
| SetAbsoluteExpiration(MemoryCacheEntryOptions, TimeSpan) |
Define um horário de término absoluto relativo a agora.Sets an absolute expiration time, relative to now. |
| SetPriority(MemoryCacheEntryOptions, CacheItemPriority) |
Define a prioridade para manter a entrada de cache no cache durante uma limpeza com token de pressão de memória.Sets the priority for keeping the cache entry in the cache during a memory pressure tokened cleanup. |
| SetSize(MemoryCacheEntryOptions, Int64) |
Define o tamanho do valor da entrada de cache.Sets the size of the cache entry value. |
| SetSlidingExpiration(MemoryCacheEntryOptions, TimeSpan) |
Define por quanto tempo a entrada de cache pode ficar inativa (por exemplo, não acessada) antes de ser removida.Sets how long the cache entry can be inactive (e.g. not accessed) before it will be removed. Isso não estenderá o tempo de vida da entrada além do término absoluto (se definido).This will not extend the entry lifetime beyond the absolute expiration (if set). |