Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HybridCache: reflect API merge into runtime - preview 7 backport #56946

Conversation

mgravell
Copy link
Member

@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 release/9.0-preview7 version). Until runtime is built and the deps are updated, aspnetcore may be unbuildable.

Cross-reference: #56945 (main)

@mgravell mgravell added the feature-caching Includes: StackExchangeRedis and SqlServer distributed caches label Jul 23, 2024
@dotnet-issue-labeler dotnet-issue-labeler bot added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Jul 23, 2024
Copy link
Contributor

Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at.

Copy link
Member

@captainsafia captainsafia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look good to me as far as reflecting the API that was ultimately approved into runtime.

@wtgodbe
Copy link
Member

wtgodbe commented Jul 24, 2024

Should cherry-pick this into #56962

@mgravell mgravell changed the base branch from release/9.0-preview7 to darc-release/9.0-preview7-c259b2cd-b00e-4c3b-b2fb-6b98cf9f247a July 24, 2024 15:15
@mgravell
Copy link
Member Author

@wtgodbe lets see if this works... changed target/base from release/9.0-preview7 to darc-release/9.0-preview7-c259b2cd-b00e-4c3b-b2fb-6b98cf9f247a

@mgravell
Copy link
Member Author

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@mgravell
Copy link
Member Author

tested locally - needed to add back a few more "unshipped" (I guess I got carried away with the del) - should build now

@mgravell
Copy link
Member Author

mgravell commented Jul 24, 2024

@wtgodbe definitely improving - https://github.com/dotnet/aspnetcore/pull/56946/checks?check_run_id=27868375271 still has some unrelated (I hope!) errors in AesGcmAuthenticatedEncryptor

Something is up with "Linux Musl ARM" and "macOS arm64" like they haven't got the updated bits - taking a peek, but EOD here

@wtgodbe wtgodbe merged commit f12be00 into darc-release/9.0-preview7-c259b2cd-b00e-4c3b-b2fb-6b98cf9f247a Jul 24, 2024
7 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework feature-caching Includes: StackExchangeRedis and SqlServer distributed caches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants