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

Nom Description
RedisCache(IOptions<RedisCacheOptions>)

Méthodes

Nom Description
Dispose()
Get(String)
GetAsync(String, CancellationToken)
Refresh(String)
RefreshAsync(String, CancellationToken)
Remove(String)
RemoveAsync(String, CancellationToken)
Set(String, Byte[], DistributedCacheEntryOptions)
SetAsync(String, Byte[], DistributedCacheEntryOptions, CancellationToken)

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.

S’applique à