次の方法で共有


MsalDistributedTokenCacheAdapter.ReadCacheBytesAsync Method

Definition

Overloads

ReadCacheBytesAsync(String)

Read a specific token cache, described by its cache key, from the distributed cache.

ReadCacheBytesAsync(String, CacheSerializerHints)

Read a specific token cache, described by its cache key, from the distributed cache.

ReadCacheBytesAsync(String)

Read a specific token cache, described by its cache key, from the distributed cache.

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())

Parameters

cacheKey
String

Key of the cache item to retrieve.

Returns

Task<Byte[]>

Read blob representing a token cache for the cache key (account or app).

Applies to

ReadCacheBytesAsync(String, CacheSerializerHints)

Read a specific token cache, described by its cache key, from the distributed 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())

Parameters

cacheKey
String

Key of the cache item to retrieve.

cacheSerializerHints
CacheSerializerHints

Hints for the cache serialization implementation optimization.

Returns

Task<Byte[]>

Read blob representing a token cache for the cache key (account or app).

Applies to