共用方式為


MsalDistributedTokenCacheAdapter.WriteCacheBytesAsync Method

Definition

Overloads

WriteCacheBytesAsync(String, Byte[])

Writes a token cache blob to the serialization cache (by key).

WriteCacheBytesAsync(String, Byte[], CacheSerializerHints)

Writes a token cache blob to the serialization cache (by key).

WriteCacheBytesAsync(String, Byte[])

Writes a token cache blob to the serialization cache (by key).

protected override System.Threading.Tasks.Task WriteCacheBytesAsync (string cacheKey, byte[] bytes);
override this.WriteCacheBytesAsync : string * byte[] -> System.Threading.Tasks.Task
Protected Overrides Function WriteCacheBytesAsync (cacheKey As String, bytes As Byte()) As Task

Parameters

cacheKey
String

Cache key.

bytes
Byte[]

blob to write.

Returns

A Task that completes when a write operation has completed.

Applies to

WriteCacheBytesAsync(String, Byte[], CacheSerializerHints)

Writes a token cache blob to the serialization cache (by key).

protected override System.Threading.Tasks.Task WriteCacheBytesAsync (string cacheKey, byte[] bytes, Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints? cacheSerializerHints);
override this.WriteCacheBytesAsync : string * byte[] * Microsoft.Identity.Web.TokenCacheProviders.CacheSerializerHints -> System.Threading.Tasks.Task
Protected Overrides Function WriteCacheBytesAsync (cacheKey As String, bytes As Byte(), cacheSerializerHints As CacheSerializerHints) As Task

Parameters

cacheKey
String

Cache key.

bytes
Byte[]

blob to write.

cacheSerializerHints
CacheSerializerHints

Hints for the cache serialization implementation optimization.

Returns

A Task that completes when a write operation has completed.

Applies to