Language

MicrosoftIdentityOptions.UseFastUnboundedCache Property

Definition

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

Property Value

Applies to