Partager via


DistributedCacheExtensions Classe

Définition

Méthodes d’extension pour définir les données d’un IDistributedCache.

public ref class DistributedCacheExtensions abstract sealed
public static class DistributedCacheExtensions
type DistributedCacheExtensions = class
Public Module DistributedCacheExtensions
Héritage
DistributedCacheExtensions

Méthodes

GetString(IDistributedCache, String)

Obtient 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[], 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, 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, DistributedCacheEntryOptions, CancellationToken)

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

S’applique à