次の方法で共有


MsalAbstractTokenCacheProvider.WriteCacheBytesAsync Method

Definition

Overloads

WriteCacheBytesAsync(String, Byte[])

Method to be implemented by concrete cache serializers to write the cache bytes.

WriteCacheBytesAsync(String, Byte[], CacheSerializerHints)

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

WriteCacheBytesAsync(String, Byte[])

Method to be implemented by concrete cache serializers to write the cache bytes.

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

Parameters

cacheKey
String

Cache key.

bytes
Byte[]

Bytes to write.

Returns

A Task that represents a completed write operation.

Applies to

WriteCacheBytesAsync(String, Byte[], CacheSerializerHints)

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

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

Parameters

cacheKey
String

Cache key.

bytes
Byte[]

Bytes to write.

cacheSerializerHints
CacheSerializerHints

Hints for the cache serialization implementation optimization.

Returns

A Task that represents a completed write operation.

Applies to