IDistributedCache Interface

Définition

Représente un cache distribué de valeurs sérialisées.

public interface class IDistributedCache
public interface IDistributedCache
type IDistributedCache = interface
Public Interface IDistributedCache
Dérivé

Méthodes

Get(String)

Obtient une valeur avec la clé donnée.

GetAsync(String)

Représente un cache distribué de valeurs sérialisées.

GetAsync(String, CancellationToken)

Obtient une valeur avec la clé donnée.

Refresh(String)

Actualise une valeur du cache en fonction de sa clé, en réinitialisant son délai d’expiration décalé (si celui-ci a été défini).

RefreshAsync(String)

Représente un cache distribué de valeurs sérialisées.

RefreshAsync(String, CancellationToken)

Actualise une valeur du cache en fonction de sa clé, en réinitialisant son délai d’expiration décalé (si celui-ci a été défini).

Remove(String)

Supprime la valeur avec la clé donnée.

RemoveAsync(String)

Représente un cache distribué de valeurs sérialisées.

RemoveAsync(String, CancellationToken)

Supprime la valeur avec la clé donnée.

Set(String, Byte[], DistributedCacheEntryOptions)

Définit une valeur avec la clé donnée.

SetAsync(String, Byte[], DistributedCacheEntryOptions)

Représente un cache distribué de valeurs sérialisées.

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

Définit la valeur avec la clé donnée.

Méthodes d’extension

GetString(IDistributedCache, String)

Obtient une chaîne à partir du cache spécifié avec la clé spécifiée.

GetStringAsync(IDistributedCache, String)

Obtient de manière asynchrone une chaîne à partir du cache spécifié avec la clé spécifiée.

GetStringAsync(IDistributedCache, String, CancellationToken)

Obtient de manière asynchrone une chaîne à partir du cache spécifié avec la clé spécifiée.

Set(IDistributedCache, String, Byte[])

Définit une séquence d’octets dans le cache spécifié avec la clé spécifiée.

SetAsync(IDistributedCache, String, Byte[])

Définit de manière asynchrone une séquence d’octets dans le cache spécifié avec la clé spécifiée.

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

Définit de manière asynchrone une séquence d’octets dans le cache spécifié avec la clé spécifiée.

SetString(IDistributedCache, String, String)

Définit une chaîne dans le cache spécifié avec la clé spécifiée.

SetString(IDistributedCache, String, String, DistributedCacheEntryOptions)

Définit une chaîne dans le cache spécifié avec la clé spécifiée.

SetStringAsync(IDistributedCache, String, String)

Définit de manière asynchrone une chaîne dans le cache spécifié avec la clé spécifiée.

SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions)

Définit de manière asynchrone une chaîne dans le cache spécifié avec la clé spécifiée.

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

Définit de manière asynchrone une chaîne dans le cache spécifié avec la clé spécifiée.

SetStringAsync(IDistributedCache, String, String, CancellationToken)

Définit de manière asynchrone une chaîne dans le cache spécifié avec la clé spécifiée.

S’applique à