RedisCache Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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
| Nom | Description |
|---|---|
| RedisCache(IOptions<RedisCacheOptions>) | |
Méthodes
Méthodes d’extension
| Nom | Description |
|---|---|
| GetString(IDistributedCache, String) |
Obtient une chaîne du cache spécifié avec la clé spécifiée. |
| GetStringAsync(IDistributedCache, String, CancellationToken) |
Obtient de façon 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 façon asynchrone une séquence d’octets 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. |
| SetString(IDistributedCache, String, String) |
Définit une chaîne dans le cache spécifié avec la clé spécifiée. |
| SetStringAsync(IDistributedCache, String, String, CancellationToken) |
Définit de façon asynchrone une chaîne dans le cache spécifié avec la clé spécifiée. |
| SetStringAsync(IDistributedCache, String, String, DistributedCacheEntryOptions, CancellationToken) |
Définit de façon asynchrone une chaîne dans le cache spécifié avec la clé spécifiée. |