MsalDistributedTokenCacheAdapter.WriteCacheBytesAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for