MsalMemoryTokenCacheProvider.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) |
Lit un objet blob à partir du cache de sérialisation (identifié par sa clé). |
| ReadCacheBytesAsync(String, CacheSerializerHints) |
Méthode à remplacer par des sérialiseurs de cache concrets pour lire les octets du cache. |
ReadCacheBytesAsync(String)
Lit un objet blob à partir du cache de sérialisation (identifié par sa clé).
protected override System.Threading.Tasks.Task<byte[]?> ReadCacheBytesAsync(string cacheKey);
override this.ReadCacheBytesAsync : string -> System.Threading.Tasks.Task<byte[]>
Protected Overrides Function ReadCacheBytesAsync (cacheKey As String) As Task(Of Byte())
Paramètres
- cacheKey
- String
Clé de cache de jeton.
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 override System.Threading.Tasks.Task<byte[]?> ReadCacheBytesAsync(string cacheKey, Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints cacheSerializerHints);
override this.ReadCacheBytesAsync : string * Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints -> System.Threading.Tasks.Task<byte[]>
Protected Overrides 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.