-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Upgrade ExtendedCache to support non-Redis distributed cache #6682
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
Upgrade ExtendedCache to support non-Redis distributed cache #6682
Conversation
|
Claude finished @brant-livefront's task —— View job Code Review Complete ✅I've completed a comprehensive review of PR #6682. Here's my assessment: Overall Assessment👍 Strong implementation with excellent test coverage - This PR successfully refactors SummaryRecommendation: ✅ Approved for merge The PR demonstrates:
Detailed Review by File1.
|
|
Great job! No new security vulnerabilities introduced in this pull request |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6682 +/- ##
==========================================
+ Coverage 53.40% 53.42% +0.01%
==========================================
Files 1917 1917
Lines 85466 85472 +6
Branches 7667 7667
==========================================
+ Hits 45643 45663 +20
+ Misses 38056 38043 -13
+ Partials 1767 1766 -1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@claude we have an ADR describing this shift located at bitwarden/contributing-docs#722. Backwards compatibility is not needed at this time as the functionality is new. The |
|
Claude finished @withinfocus's task —— View job Documentation Updated ✅I've updated the CACHING.md file to reflect the setting rename from Changes Made:
Commit: 4707580 The documentation now accurately reflects the new setting name introduced in this PR. Thank you for clarifying that backward compatibility wasn't needed and that the ADR documents the architectural decision! | |
withinfocus
left a comment
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.
Makes sense to me, but let's update the caching docs at the same time here.
Updated documentation to reflect the setting rename from UseSharedRedisCache to UseSharedDistributedCache in the ExtendedCache configuration examples. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]> Co-authored-by: Matt Bishop <[email protected]>
justindbaur
left a comment
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.
Looks good!

📔 Objective
In revising some of the documentation around extended cache, we realized that while
FusionCacheallows anyIDistributedCacheto be used for L2 cache, our implementation was highly focused on just Redis (which is what we use in cloud, but is not required). This PR adds support for using shared and separate keyed distributed caches that are not Redis.Changes:
UseSharedRedisCachetoUseSharedDIstributedCacheIDistributedCacheis already registered.FusionCachewill look for this service and use it if it's there (failing gracefully to just L1 / memory if not). In this case, there is no backplane support, due to the fact that Redis' pub/sub is necessary for backplane)UseSharedDIstributedCacheis true.⏰ Reminders before review
🦮 Reviewer guidelines
:+1:) or similar for great changes:memo:) or ℹ️ (:information_source:) for notes or general info:question:) for questions:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes