共用方式為


MsalAbstractTokenCacheProvider Class

Definition

Token cache provider with default implementation.

public abstract class MsalAbstractTokenCacheProvider : Microsoft.Identity.Web.TokenCacheProviders.IMsalTokenCacheProvider
type MsalAbstractTokenCacheProvider = class
    interface IMsalTokenCacheProvider
Public MustInherit Class MsalAbstractTokenCacheProvider
Implements IMsalTokenCacheProvider
Inheritance
MsalAbstractTokenCacheProvider
Derived
Implements

Constructors

MsalAbstractTokenCacheProvider(IDataProtector, ILogger<MsalAbstractTokenCacheProvider>)

Constructor.

MsalAbstractTokenCacheProvider(IDataProtector)

Constructor.

Methods

ClearAsync(String)

Clear the cache.

GetSuggestedCacheKey(TokenCacheNotificationArgs)

Method to be overridden by concrete cache serializers to express the suggested key.

Initialize(ITokenCache)

Initializes the token cache serialization.

InitializeAsync(ITokenCache)

Initializes the token cache serialization.

OnBeforeWriteAsync(TokenCacheNotificationArgs)

If you want to ensure that no concurrent write takes place, use this notification to place a lock on the entry.

ReadCacheBytesAsync(String, CacheSerializerHints)

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

ReadCacheBytesAsync(String)

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

RemoveKeyAsync(String, CacheSerializerHints)

Method to be overridden by concrete cache serializers to remove an entry from the cache.

RemoveKeyAsync(String)

Method to be implemented by concrete cache serializers to remove an entry from the cache.

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.

Applies to

See also