CacheOptions.UseSharedCache 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.
Share the cache between all ClientApplication objects. The cache becomes static. Defaults to false.
public bool UseSharedCache { get; set; }
member this.UseSharedCache : bool with get, set
Public Property UseSharedCache As Boolean
Property Value
Remarks
Recommended only for client credentials flow (service to service communication). Web apps and Web APIs should use external token caching (Redis, Cosmos etc.) for scaling purposes. Desktop apps should encrypt and persist their token cache to disk, to avoid losing tokens when app restarts. ADAL used a static cache by default.