AzureAD / microsoft-identity-web

Helps creating protected web apps and web APIs with Microsoft identity platform and Azure AD B2C
MIT License
684 stars 217 forks source link

[Feature Request] Replace the memory cache and distributed cache implementation with .NET9's Hybrid Cache #3153

Open bgavrilMS opened 1 week ago

bgavrilMS commented 1 week ago

[Is your feature request related to a problem? Please describe. .NET team provides a new library called HybridCache, which by default uses MemoryCache, but can optionally also be configured with a DistributedCache

https://learn.microsoft.com/en-us/aspnet/core/performance/caching/hybrid?view=aspnetcore-9.0

This library works on netstandard2.0 and net722

Describe the solution you'd like Update the MemoryTokenCache and DistributedTokenCache implementation to use a HybridCache.