-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Simplify redis cache setup #49722
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
Simplify redis cache setup #49722
Conversation
Thanks for your PR, @tebeco. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
2581e3e
to
ab452b1
Compare
f307d0b
to
c55dc79
Compare
Interestingly, the fact that there may be duplicated code between distributed cache and output cache came up separately, and may be a parallel motivation for this as a change. I need to check on API consistency, though. |
a05a20b
to
c55dc79
Compare
Fine for me, hopping that it can land in |
https://github.com/dotnet/aspnetcore/blob/main/docs/APIBaselines.md#new-apis
|
a9b4ae2
to
81cc5d9
Compare
Ah ! thanks Hope I didn't mess the files/TFM since
|
To set expectations: we'll have a look at this and discuss things internally but: we're rapidly approaching lockdown for net8, especially since this involves API changes. |
@tebeco as I'm sure you know, we didn't manage to get to this in net8, sorry - not least because of some last minute changes to the assembly layout. Now that we're coming up from air a bit, we can try to catch up with this; overall, it looks reasonable, but we'll need to reflect those changes, specifically: reflect the move of the bits to here. I've had a look at this locally, and it looks like it would be quicker to redo from "main" than to fix those conflicts, but I don't want to jump in an remove credit on the PR. Are you eager enough to update to reflect that? Alternatively, I can take it over - copying over the proposed changes. Thoughts? |
…andatory setupAction
81cc5d9
to
d401918
Compare
I just realized i did not read through all your message, I just rebased the branch on top of the change I've seen. this should be enabled as well |
nop this is still active from the owner/op point of view |
/azp run |
Commenter does not have sufficient privileges for PR 49722 in repo dotnet/aspnetcore |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
@mgravell Just making sure this is this still on your radar |
🫥 |
🦤 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 8 changed files in this pull request and generated no comments.
Files not reviewed (4)
- src/Caching/StackExchangeRedis/src/PublicAPI/net462/PublicAPI.Unshipped.txt: Language not supported
- src/Caching/StackExchangeRedis/src/PublicAPI/net9.0/PublicAPI.Unshipped.txt: Language not supported
- src/Caching/StackExchangeRedis/src/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt: Language not supported
- src/Middleware/Microsoft.AspNetCore.OutputCaching.StackExchangeRedis/src/PublicAPI.Unshipped.txt: Language not supported
Comments suppressed due to low confidence (1)
src/Caching/StackExchangeRedis/src/StackExchangeRedisCacheServiceCollectionExtensions.cs:21
- The tag should be updated to match the existing documentation style. It should be 'The so that additional calls can be chained.'.
<returns>The <see cref="IServiceCollection"/> so that additional calls can be chained.</returns>
echoing comment here: #49721 (comment) |
Add flexibility to AddStackExchangeRedisCache by removing setupAction
Adds an overload to
AddStackExchangeRedisCache
without previously mandatorysetupAction
Description
Add flexibility to AddStackExchangeRedisCache by removing setupAction
Fixes #49721