MicrosoftIdentityOptions.UseFastUnboundedCache Property
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.
When set to true, the in-memory token cache uses MSAL's internal
shared (static) cache instead of the IMemoryCache serialization provider.
Defaults to false (recommended). When false, tokens
are stored through the in-memory serialization provider, so the cache honors per-entry
expiry, the memory cache size limit, and cache-key partitioning.
Set to true for the fast, process-wide static cache. It avoids
per-request serialization but is unbounded (no eviction of expired tokens) and
ignores the expiry/size options and the partitioning hook. This can be set via
configuration (e.g. "AzureAd": { "UseFastUnboundedCache": true }).
public bool UseFastUnboundedCache { get; set; }
member this.UseFastUnboundedCache : bool with get, set
Public Property UseFastUnboundedCache As Boolean