MsalAbstractTokenCacheProvider.ReadCacheBytesAsync Méthode
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.
Surcharges
| Nom | Description |
|---|---|
| ReadCacheBytesAsync(String) |
Méthode à implémenter par des sérialiseurs de cache concrets pour lire les octets du cache. |
| ReadCacheBytesAsync(String, CacheSerializerHints) |
Méthode à remplacer par des sérialiseurs de cache concrets pour lire les octets du cache. |
ReadCacheBytesAsync(String)
Méthode à implémenter par des sérialiseurs de cache concrets pour lire les octets du cache.
protected abstract System.Threading.Tasks.Task<byte[]?> ReadCacheBytesAsync(string cacheKey);
abstract member ReadCacheBytesAsync : string -> System.Threading.Tasks.Task<byte[]>
Protected MustOverride Function ReadCacheBytesAsync (cacheKey As String) As Task(Of Byte())
Paramètres
- cacheKey
- String
Clé de cache.
Retours
En lecture d’octets.
S’applique à
ReadCacheBytesAsync(String, CacheSerializerHints)
Méthode à remplacer par des sérialiseurs de cache concrets pour lire les octets du cache.
protected virtual System.Threading.Tasks.Task<byte[]?> ReadCacheBytesAsync(string cacheKey, Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints cacheSerializerHints);
abstract member ReadCacheBytesAsync : string * Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints -> System.Threading.Tasks.Task<byte[]>
override this.ReadCacheBytesAsync : string * Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints -> System.Threading.Tasks.Task<byte[]>
Protected Overridable Function ReadCacheBytesAsync (cacheKey As String, cacheSerializerHints As CacheSerializerHints) As Task(Of Byte())
Paramètres
- cacheKey
- String
Clé de cache.
- cacheSerializerHints
- CacheSerializerHints
Conseils pour l’optimisation de l’implémentation de sérialisation du cache.
Retours
En lecture d’octets.