Skip to content

HybridCache: Add HybridCache.GetOrCreateAsync overloads for dynamic setting of options #7669

Closed

Description

@svick

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.

Activity

  1. added this to the 11.0 milestone on Jul 30, 2026
  2. self-assigned this
    on Jul 30, 2026
  3. EnricoMassone commented on Aug 2, 2026

    @EnricoMassone

    Can you please evaluate to backport this feature to dotnet 10 also ?

  4. svick commented on Aug 3, 2026

    @svick
    MemberAuthor

    @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.

  5. EnricoMassone commented on Aug 3, 2026

    @EnricoMassone

    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.

  6. svick commented on Aug 3, 2026

    @svick
    MemberAuthor

    @EnricoMassone Yes, exactly.

  7. Seabizkit commented on Aug 15, 2026

    @Seabizkit

    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

  8. svick commented on Aug 25, 2026

    @svick
    MemberAuthor

    @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.)

  9. alex50105 commented on Nov 6, 2026

    @alex50105

    @svick .NET 11 releases in a few days, is this still on track? Really would love to use that feature.

  10. svick commented on Nov 6, 2026

    @svick
    MemberAuthor

    @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.

  11. removed this from the 11.0 milestone on Nov 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions