Condividi tramite


SqlServerCache Classe

Definizione

Implementazione della cache distribuita mediante il database di Microsoft SQL Server.

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

Costruttori

SqlServerCache(IOptions<SqlServerCacheOptions>)

Implementazione della cache distribuita mediante il database di Microsoft SQL Server.

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, 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, 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, CancellationToken)

Rimuove un valore con la chiave specificata.

Set(String, Byte[], DistributedCacheEntryOptions)

Imposta un valore con la chiave specificata.

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

Imposta il valore con la chiave specificata.

ToString()

Restituisce una stringa che rappresenta l'oggetto corrente.

(Ereditato da Object)

Implementazioni dell'interfaccia esplicita

IBufferDistributedCache.Set(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions)

Implementazione della cache distribuita mediante il database di Microsoft SQL Server.

IBufferDistributedCache.SetAsync(String, ReadOnlySequence<Byte>, DistributedCacheEntryOptions, CancellationToken)

Implementazione della cache distribuita mediante il database di Microsoft SQL Server.

IBufferDistributedCache.TryGet(String, IBufferWriter<Byte>)

Implementazione della cache distribuita mediante il database di Microsoft SQL Server.

IBufferDistributedCache.TryGetAsync(String, IBufferWriter<Byte>, CancellationToken)

Implementazione della cache distribuita mediante il database di Microsoft SQL Server.

Metodi di estensione

GetString(IDistributedCache, String)

Ottiene 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[], 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, 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