Partilhar via


MsalMemoryTokenCacheProvider.WriteCacheBytesAsync Method

Definition

Overloads

WriteCacheBytesAsync(String, Byte[])

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

WriteCacheBytesAsync(String, Byte[], CacheSerializerHints)

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

WriteCacheBytesAsync(String, Byte[])

Writes a token cache blob to the serialization cache (identified by its 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

Token cache key.

bytes
Byte[]

Bytes 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 (identified by its 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

Token cache key.

bytes
Byte[]

Bytes to write.

cacheSerializerHints
CacheSerializerHints

Hints for the cache serialization implementation optimization.

Returns

A Task that completes when a write operation has completed.

Applies to