MsalDistributedTokenCacheAdapter Class
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.
An implementation of the token cache for both Confidential and Public clients backed by a Distributed Cache. The Distributed Cache (L2), by default creates a Memory Cache (L1), for faster look up, resulting in a two level cache.
public class MsalDistributedTokenCacheAdapter : Microsoft.Identity.Web.TokenCacheProviders.MsalAbstractTokenCacheProvider
type MsalDistributedTokenCacheAdapter = class
inherit MsalAbstractTokenCacheProvider
Public Class MsalDistributedTokenCacheAdapter
Inherits MsalAbstractTokenCacheProvider
- Inheritance
Constructors
Methods
ClearAsync(String) |
Clear the cache. (Inherited from MsalAbstractTokenCacheProvider) |
GetSuggestedCacheKey(TokenCacheNotificationArgs) |
Method to be overridden by concrete cache serializers to express the suggested key. (Inherited from MsalAbstractTokenCacheProvider) |
Initialize(ITokenCache) |
Initializes the token cache serialization. (Inherited from MsalAbstractTokenCacheProvider) |
InitializeAsync(ITokenCache) |
Initializes the token cache serialization. (Inherited from MsalAbstractTokenCacheProvider) |
OnBeforeWriteAsync(TokenCacheNotificationArgs) |
If you want to ensure that no concurrent write takes place, use this notification to place a lock on the entry. (Inherited from MsalAbstractTokenCacheProvider) |
ReadCacheBytesAsync(String) |
Read a specific token cache, described by its cache key, from the distributed cache. |
ReadCacheBytesAsync(String, CacheSerializerHints) |
Read a specific token cache, described by its cache key, from the distributed cache. |
RemoveKeyAsync(String) |
Removes a specific token cache, described by its cache key from the distributed cache. |
RemoveKeyAsync(String, CacheSerializerHints) |
Removes a specific token cache, described by its cache key from the distributed cache. |
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). |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기