Skip to content

fix: update cache key generation for secondary caches#602

Open
wschurman wants to merge 1 commit into
05-14-fix_replace_makekeyfn_with_delimiter_to_strengthen_guarantee_of_proper_escapingfrom
05-14-fix_update_cache_key_generation_for_secondary_caches
Open

fix: update cache key generation for secondary caches#602
wschurman wants to merge 1 commit into
05-14-fix_replace_makekeyfn_with_delimiter_to_strengthen_guarantee_of_proper_escapingfrom
05-14-fix_update_cache_key_generation_for_secondary_caches

Conversation

@wschurman
Copy link
Copy Markdown
Member

@wschurman wschurman commented May 14, 2026

Why

Similar to #601, it was possible for a misconfigured application to have collisions in cache keys for secondary caches. Because they likely share the same redis instance at the application level, these keys need similar treatment for separating them logically from normal loader keys plus consistent delimiter escaping.

How

Hoist final key creation from application level to library level and apply consistent delimiter escaping and namespacing.

Test Plan

Run new test.

Copy link
Copy Markdown
Member Author

wschurman commented May 14, 2026

@codecov
Copy link
Copy Markdown

codecov Bot commented May 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (8fb1efe) to head (b8c572c).

Additional details and impacted files
@@                                                   Coverage Diff                                                    @@
##           05-14-fix_replace_makekeyfn_with_delimiter_to_strengthen_guarantee_of_proper_escaping      #602    +/-   ##
========================================================================================================================
  Coverage                                                                                 100.00%   100.00%            
========================================================================================================================
  Files                                                                                        109       109            
  Lines                                                                                      17623     17636    +13     
  Branches                                                                                    1518       913   -605     
========================================================================================================================
+ Hits                                                                                       17623     17636    +13     
Flag Coverage Δ
integration 28.74% <87.50%> (+0.05%) ⬆️
unittest 94.49% <12.50%> (-0.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants