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
{{ message }}
Repository navigation
HybridCache: Add HybridCache.GetOrCreateAsync overloads for dynamic setting of options #7669
This is a follow-up to dotnet/runtime#121530 and dotnet/runtime#114366 to implement the new API in DefaultHybridCache. It's currently blocked on dotnet/extensions switching to .Net 11.
@EnricoMassone We don't backport new APIs. Though you will be able to use Microsoft.Extensions.Caching.Hybrid 11.0, including this feature, from your .Net 10 code, once it's released.
Good morning. Thanks for the clarification. So the new version of extensions package will be safe to refernce and use from a dotnet 10 application also ?
@Seabizkit Yes, the implementation here depends on changes that are in Microsoft.Extensions.Caching.Abstractions 11.0. So it's going to be in Microsoft.Extensions.Caching.Hybrid 11.0.
Enhancements being published only once a year is how all packages that are in dotnet/runtime do it, so I don't think it should be a problem. (I do see having to wait months before merging a PR as a problem, but that only affects contributors, not users.)
@alex50105 The API with a default implementation will definitely be included in .Net 11.0 (it has been there since Preview 7).
This issue tracks overriding that implementation in DefaultHybridCache to make it work better. I am trying to get it included in the 11.0 version of Microsoft.Extensions.Caching.Hybrid that releases next week. Otherwise, it will almost certainly be included in the 11.1 version that should be released in December.
Activity
MihuBot commentedon Jul 30, 2026
I'm a bot. Here are possible related and/or duplicate issues (I may be wrong):
EnricoMassone commentedon Aug 2, 2026
Can you please evaluate to backport this feature to dotnet 10 also ?
svick commentedon Aug 3, 2026
@EnricoMassone We don't backport new APIs. Though you will be able to use Microsoft.Extensions.Caching.Hybrid 11.0, including this feature, from your .Net 10 code, once it's released.
EnricoMassone commentedon Aug 3, 2026
Good morning. Thanks for the clarification. So the new version of extensions package will be safe to refernce and use from a dotnet 10 application also ?
Thanks for clarifying.
svick commentedon Aug 3, 2026
@EnricoMassone Yes, exactly.
Seabizkit commentedon Aug 15, 2026
So the feature is basically done but it's release time is to I'll be linked to. Net 11?
As generally features are not added outside of entire. Main. Net releases?
Main release only happen 1s a year.. This is quite long time for enhancements to be added no?
I'm guessing to encourage ppl to more to latest?
These are all kind of questions.
I'm just glad it's being added and ppl on. Net 10 or 9 or. Net standard 2 should be able to benefit from this, regardsless of how long it's taken.
Always nice when there something built in that does the job properly better than you could youself. Awesome that this is being added, thx
svick commentedon Aug 25, 2026
@Seabizkit Yes, the implementation here depends on changes that are in Microsoft.Extensions.Caching.Abstractions 11.0. So it's going to be in Microsoft.Extensions.Caching.Hybrid 11.0.
Enhancements being published only once a year is how all packages that are in dotnet/runtime do it, so I don't think it should be a problem. (I do see having to wait months before merging a PR as a problem, but that only affects contributors, not users.)
alex50105 commentedon Nov 6, 2026
@svick .NET 11 releases in a few days, is this still on track? Really would love to use that feature.
svick commentedon Nov 6, 2026
@alex50105 The API with a default implementation will definitely be included in .Net 11.0 (it has been there since Preview 7).
This issue tracks overriding that implementation in
DefaultHybridCacheto make it work better. I am trying to get it included in the 11.0 version ofMicrosoft.Extensions.Caching.Hybridthat releases next week. Otherwise, it will almost certainly be included in the 11.1 version that should be released in December.