MemoryDistributedCache Classe

Definizione

Implementazione dell'uso IMemoryCachedi IDistributedCache .

public ref class MemoryDistributedCache : Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class MemoryDistributedCache : Microsoft.Extensions.Caching.Distributed.IDistributedCache
type MemoryDistributedCache = class
    interface IDistributedCache
Public Class MemoryDistributedCache
Implements IDistributedCache
Ereditarietà
MemoryDistributedCache
Implementazioni

Costruttori

MemoryDistributedCache(IMemoryCache)

Implementazione dell'uso IMemoryCachedi IDistributedCache .

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>)

Crea una nuova istanza di MemoryDistributedCache.

MemoryDistributedCache(IOptions<MemoryDistributedCacheOptions>, ILoggerFactory)

Crea una nuova istanza di MemoryDistributedCache.

Metodi

Equals(Object)

Determina se l'oggetto specificato è uguale all'oggetto corrente.

(Ereditato da Object)
Get(String)

Ottiene un valore con la chiave specificata.

GetAsync(String)

Implementazione dell'uso IMemoryCachedi IDistributedCache .

GetAsync(String, CancellationToken)

Ottiene un valore con la chiave specificata.

GetHashCode()

Funge da funzione hash predefinita.

(Ereditato da Object)
GetType()

Ottiene l'oggetto Type dell'istanza corrente.

(Ereditato da Object)
MemberwiseClone()

Crea una copia superficiale dell'oggetto Object corrente.

(Ereditato da Object)
Refresh(String)

Aggiorna un valore nella cache in base alla relativa chiave, reimpostando il timeout di scadenza variabile (se disponibile).

RefreshAsync(String)

Implementazione dell'uso IMemoryCachedi IDistributedCache .

RefreshAsync(String, CancellationToken)

Aggiorna un valore nella cache in base alla relativa chiave, reimpostando il timeout di scadenza variabile (se disponibile).

Remove(String)

Rimuove un valore con la chiave specificata.

RemoveAsync(String)

Implementazione dell'uso IMemoryCachedi IDistributedCache .

RemoveAsync(String, CancellationToken)

Rimuove un valore con la chiave specificata.

Set(String, Byte[], DistributedCacheEntryOptions)

Imposta un valore con la chiave specificata.

SetAsync(String, Byte[], DistributedCacheEntryOptions)

Implementazione dell'uso IMemoryCachedi IDistributedCache .

SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)

Imposta il valore con la chiave specificata.

ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Metodi di estensione

GetString(IDistributedCache, String)

Ottiene una stringa dalla cache specificata con la chiave specificata.

GetStringAsync(IDistributedCache, String)

Ottiene in modo asincrono una stringa dalla cache specificata con la chiave specificata.

GetStringAsync(IDistributedCache, String, CancellationToken)

Ottiene in modo asincrono una stringa dalla cache specificata con la chiave specificata.

Set(IDistributedCache, String, Byte[])

Imposta una sequenza di byte nella cache specificata con la chiave specificata.

SetAsync(IDistributedCache, String, Byte[])

Imposta in modo asincrono una sequenza di byte nella cache specificata con la chiave specificata.

SetAsync(IDistributedCache, String, Byte[], CancellationToken)

Imposta in modo asincrono una sequenza di byte nella cache specificata con la chiave specificata.

SetString(IDistributedCache, String, String)

Imposta una stringa nella cache specificata con la chiave specificata.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Imposta una stringa nella cache specificata con la chiave specificata.

SetStringAsync(IDistributedCache, String, String)

Imposta in modo asincrono una stringa nella cache specificata con la chiave specificata.

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions)

Imposta in modo asincrono una stringa nella cache specificata con la chiave specificata.

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken)

Imposta in modo asincrono una stringa nella cache specificata con la chiave specificata.

SetStringAsync(IDistributedCache, String, String, CancellationToken)

Imposta in modo asincrono una stringa nella cache specificata con la chiave specificata.

Si applica a