You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Today, MsalDistributedTokenCacheAdapterOptions exposes L1CacheSizeLimit and L1ExpirationTimeRatio.
Describe the solution you'd like
@henrik-me proposed that we expose all the settings of the L1 cache
Make sure that the contructor of MsalDistributedTokenCacheAdapterOptions also news up a MemoryCacheOptions, and sets the SizeLimit to 500 Mb.
publicclassMsalDistributedTokenCacheAdapterOptions:DistributedCacheEntryOptions{/// <summary>/// Options of the L1 cache./// </summary>publicMemoryCacheOptionsL1CacheOptions{get;set;}=newMemoryCacheOptions(){SizeLimit=500*1024*1024,// 500 Mb};/// <summary>/// 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, 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 <c>true</c> if the cache should try again the operation, and/// <c>false</c> otherwise. When <c>true</c> is passed and the retry fails, an exception/// will be thrown./// </summary>publicFunc<Exception,bool>?OnL2CacheFailure{get;set;}}
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Today,
MsalDistributedTokenCacheAdapterOptions
exposesL1CacheSizeLimit
andL1ExpirationTimeRatio
.Describe the solution you'd like
MsalDistributedTokenCacheAdapterOptions
also news up aMemoryCacheOptions
, and sets theSizeLimit
to 500 Mb.The text was updated successfully, but these errors were encountered: