次の方法で共有


MsalMemoryTokenCacheProvider.ReadCacheBytesAsync Method

Definition

Overloads

ReadCacheBytesAsync(String)

Reads a blob from the serialization cache (identified by its key).

ReadCacheBytesAsync(String, CacheSerializerHints)

Method to be overridden by concrete cache serializers to Read the cache bytes.

ReadCacheBytesAsync(String)

Reads a blob from the serialization cache (identified by its key).

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

Token cache key.

Returns

Task<Byte[]>

Read Bytes.

Applies to

ReadCacheBytesAsync(String, CacheSerializerHints)

Method to be overridden by concrete cache serializers to Read the cache bytes.

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

Cache key.

cacheSerializerHints
CacheSerializerHints

Hints for the cache serialization implementation optimization.

Returns

Task<Byte[]>

Read bytes.

Applies to