Skip to content

fix(gcache): skip hooks for invalidated redis entries

4ad1ad3
Select commit
Loading
Failed to load commit list.
Open

feat: add configurable on-cache-hit hooks to gcache #121

fix(gcache): skip hooks for invalidated redis entries
4ad1ad3
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Mar 9, 2026 in 0s

97.21% (-0.26%) compared to eb3fa9f

View this Pull Request on Codecov

97.21% (-0.26%) compared to eb3fa9f

Details

Codecov Report

❌ Patch coverage is 96.26168% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.21%. Comparing base (eb3fa9f) to head (4ad1ad3).

Files with missing lines Patch % Lines
src/gcache/_internal/redis_cache.py 88.88% 2 Missing ⚠️
src/gcache/_internal/local_cache.py 94.44% 1 Missing ⚠️
src/gcache/gcache.py 92.30% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #121      +/-   ##
==========================================
- Coverage   97.47%   97.21%   -0.26%     
==========================================
  Files          13       14       +1     
  Lines         673      754      +81     
==========================================
+ Hits          656      733      +77     
- Misses         17       21       +4     

☔ 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.