RedisCache Classe

Définition

public ref class RedisCache : IDisposable, Microsoft::Extensions::Caching::Distributed::IDistributedCache
public class RedisCache : IDisposable, Microsoft.Extensions.Caching.Distributed.IDistributedCache
type RedisCache = class
    interface IDistributedCache
    interface IDisposable
Public Class RedisCache
Implements IDisposable, IDistributedCache
Héritage
RedisCache
Implémente

Constructeurs

RedisCache(IOptions<RedisCacheOptions>)

Méthodes

Dispose()

Exécute les tâches définies par l'application associées à la libération ou à la redéfinition des ressources non managées.

Equals(Object)

Détermine si l'objet spécifié est égal à l'objet actuel.

(Hérité de Object)
Get(String)

Obtient une valeur avec la clé donnée.

GetAsync(String)
GetAsync(String, CancellationToken)

Obtient une valeur avec la clé donnée.

GetHashCode()

Fait office de fonction de hachage par défaut.

(Hérité de Object)
GetType()

Obtient le Type de l'instance actuelle.

(Hérité de Object)
MemberwiseClone()

Crée une copie superficielle du Object actuel.

(Hérité de Object)
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)
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)
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)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)

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

ToString()

Retourne une chaîne qui représente l'objet actuel.

(Hérité de Object)

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 à