MsalDistributedTokenCacheAdapterOptions 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.
Options for the MSAL token cache serialization adapter, which delegates the serialization to the IDistributedCache implementations available with .NET Core.
public class MsalDistributedTokenCacheAdapterOptions : Microsoft.Extensions.Caching.Distributed.DistributedCacheEntryOptions
type MsalDistributedTokenCacheAdapterOptions = class
inherit DistributedCacheEntryOptions
Public Class MsalDistributedTokenCacheAdapterOptions
Inherits DistributedCacheEntryOptions
- Inheritance
-
MsalDistributedTokenCacheAdapterOptions
Constructors
MsalDistributedTokenCacheAdapterOptions() |
Properties
DisableL1Cache |
Disable the in-memory (L1) cache. Useful in scenarios where multiple apps share the same distributed (L2) cache. |
EnableAsyncL2Write |
Enable writing to the distributed (L2) cache to be async (i.e. fire-and-forget). This improves performance as the MSAL.NET will not have to wait for the write to complete. |
Encrypt |
Should the token cache be encrypted. |
L1CacheOptions |
Options of the in-memory (L1) cache. |
OnL2CacheFailure |
Callback offered to the app to be notified when the L2 cache fails.
This way the app is given the possibility to act on the L2 cache,
for instance, in the case of Redis exception, to reconnect. This is left to the application as it's
the only one that knows about the real implementation of the L2 cache.
The handler should return |
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기