Skip to content

Conversation

mgravell
Copy link
Contributor

@mgravell mgravell commented Jul 23, 2024

HybridCache: reflect API merge into runtime

In runtime 103103, the proposed HybridCache API was moved from a placeholder in aspnetcore into runtime (which owns the Microsoft.Extensions.Caching.Abstractions library). This means that the original API in aspnetcore is now duplicated and redundant. Additionally, runtime requested some minor last-minute API changes (mainly: prefer cancellationToken over token naming, and prefer IEnumerable<string> over IReadOnlyCollection<string> for tags parameter)

This PR reflects this merge - removing the duplicated APIs, and fixing the changes impacted by the API delta.

Since 103103 was merged immediately before the preview 7 snap, this will need applying both in main and release/9.0-preview7 after the runtime deps are updated (this is the main version). Until runtime is built and the deps are updated, aspnetcore may be unbuildable.

Cross-reference: #56945 (release/9.0-preview7)

@mgravell mgravell added the feature-caching Includes: StackExchangeRedis and SqlServer distributed caches label Jul 23, 2024
@ghost ghost added the needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically label Jul 23, 2024
@mkArtakMSFT mkArtakMSFT added area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions and removed needs-area-label Used by the dotnet-issue-labeler to label those issues which couldn't be triaged automatically labels Jul 23, 2024
@mgravell mgravell changed the base branch from main to darc-main-f3720e04-8b5a-4698-a34f-0dcd1f62ebd0 July 24, 2024 16:09
@mgravell mgravell changed the base branch from darc-main-f3720e04-8b5a-4698-a34f-0dcd1f62ebd0 to main July 24, 2024 16:09
@mgravell
Copy link
Contributor Author

mgravell commented Jul 24, 2024

wow, changing the base into darc was horrifying, just horrifying; note to self: don't do that again; EOD here, but I'll see if I can manually cherry-pick a new branch into darc tomorrow

@akoeplinger
Copy link
Member

@mgravell I cherry-picked the changes from this PR into #56848 and added one small build fix.

@mgravell
Copy link
Contributor Author

@akoeplinger thanks; the build fix was fallout from this change - confirmed: your fix was the correct one

@mgravell mgravell closed this Jul 25, 2024
@dotnet-policy-service dotnet-policy-service bot added this to the 9.0-rc1 milestone Jul 25, 2024
@BrennanConroy BrennanConroy deleted the marc/hybrid-cache-fixup branch August 12, 2025 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants