SqlServerCache Classe

Definizione

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

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

Costruttori

Nome Descrizione
SqlServerCache(IOptions<SqlServerCacheOptions>)

Inizializza una nuova istanza di SqlServerCache.

Metodi

Nome Descrizione
Get(String)

Ottiene un valore con la chiave specificata.

GetAsync(String, CancellationToken)

Ottiene un valore con la chiave specificata.

Refresh(String)

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

RefreshAsync(String, CancellationToken)

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

Remove(String)

Rimuove il valore con la chiave specificata.

RemoveAsync(String, CancellationToken)

Rimuove il 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.

Implementazioni dell'interfaccia esplicita

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

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

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

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

IBufferDistributedCache.TryGet(String, IBufferWriter<Byte>)

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

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

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

Metodi di estensione

Nome Descrizione
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, DistributedCacheEntryOptions)

Imposta una stringa nella cache specificata con la chiave specificata.

SetString(IDistributedCache, String, String)

Imposta 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.

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

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

Si applica a