feat: initial support for dogpile caching#636
Merged
cofin merged 10 commits intolitestar-org:mainfrom Jan 18, 2026
Merged
Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #636 +/- ##
==========================================
- Coverage 80.92% 79.09% -1.83%
==========================================
Files 94 99 +5
Lines 6977 7861 +884
Branches 910 1065 +155
==========================================
+ Hits 5646 6218 +572
- Misses 1042 1301 +259
- Partials 289 342 +53 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
- Remove banned `from __future__ import annotations` imports - Fix union syntax to use Optional/Union instead of X | Y - Add proper docstrings replacing inline comments - Move non-circular imports to top-level - Add cache module documentation (usage guide and API reference) - Quote forward references for TYPE_CHECKING imports
- Add missing use_cache parameter to get() method signature - Add bind_group documentation to list() and list_and_count() docstrings - Add missing TYPE_CHECKING imports for AsyncSession, scoped_session, async_scoped_session, and CacheManager in _listeners.py - Add __init__.py to tests/unit/test_cache/ directory
- Add SyncCacheRegionProtocol for sync cache region interface - Add AsyncCacheRegionProtocol for async cache region interface - Add NO_VALUE sentinel to _null.py exports - Add _cache_manager class attribute to repository classes - Fix pyright/mypy ignore comment placement on dogpile imports - Update manager.py to use SyncCacheRegionProtocol
… operations and introduce integration tests.
…` imports and reformat long lines in cache integration tests for readability.
…e` extra, including its transitive dependencies `decorator` and `stevedore`.
…ng errors when the attribute is missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce support for dogpile caching, including a new caching configuration and a null region implementation for scenarios where caching is disabled or dogpile.cache is not installed. Add unit tests to validate the caching behavior and configuration options.