MsalMemoryTokenCacheProvider 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 token cache for both Confidential and Public clients backed by MemoryCache.
public class MsalMemoryTokenCacheProvider : Microsoft.Identity.Web.TokenCacheProviders.MsalAbstractTokenCacheProvider
type MsalMemoryTokenCacheProvider = class
inherit MsalAbstractTokenCacheProvider
Public Class MsalMemoryTokenCacheProvider
Inherits MsalAbstractTokenCacheProvider
- Inheritance
Constructors
MsalMemoryTokenCacheProvider(IMemoryCache, IOptions<MsalMemoryTokenCacheOptions>) |
Constructor. |
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) |
Reads a blob from the serialization cache (identified by its key). |
ReadCacheBytesAsync(String, CacheSerializerHints) |
Method to be overridden by concrete cache serializers to Read the cache bytes. |
RemoveKeyAsync(String) |
Removes a token cache identified by its key, from the serialization cache. |
RemoveKeyAsync(String, CacheSerializerHints) |
Method to be overridden by concrete cache serializers to remove an entry from the cache. (Inherited from MsalAbstractTokenCacheProvider) |
WriteCacheBytesAsync(String, Byte[]) |
Writes a token cache blob to the serialization cache (identified by its key). |
WriteCacheBytesAsync(String, Byte[], CacheSerializerHints) |
Writes a token cache blob to the serialization cache (identified by its key). |
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