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
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin