-
Notifications
You must be signed in to change notification settings - Fork 165
Simplify cache namespace and key encoding logic for v1 #670
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
Merged
Dreamsorcerer
merged 36 commits into
aio-libs:master
from
padraic-shafer:simplify-cache-namespace
Feb 27, 2023
Merged
Changes from all commits
Commits
Show all changes
36 commits
Select commit
Hold shift + click to select a range
7bd719a
Move namespace logic to BaseCache.build_key()
padraic-shafer 0eeab3e
BaseCache._build_key() needs keyword param
padraic-shafer 25943bd
ut/test_base/alt_base_cache tests use clearer default namespace
padraic-shafer fcd7afc
Update ut/test_base/alt_base_cache tests with new build_key() namespa…
padraic-shafer 139e0a4
Update redis namespaced key for new build_key() compatibility
padraic-shafer eebe299
Update memcached key encoding for new build_key() compatibility
padraic-shafer 6622f57
test/ut/test_base.py now calls build_key(), rather than _build_key()
padraic-shafer 54ce48d
Move Enum _ensure_key() logic into BaseCache:build_key()
padraic-shafer b2e58d7
Update changelog with revisied cache build_key() scheme
padraic-shafer 223b537
Clarify that output of BaseCache key_builder arg should be a string
padraic-shafer e8d6037
Clarify 'key_builder' parameter docstring in 'BaseCache.__init__()'
padraic-shafer 9da3608
Merge branch 'master' into simplify-cache-namespace
padraic-shafer db94261
Ensure that cache namespace is a string
padraic-shafer 84ce34c
mypy annotations for build_key() with namespace
padraic-shafer 8392b15
Merge branch 'master' into simplify-cache-namespace
padraic-shafer 16db995
Define BaseCache as generic, typed by backend cache key
padraic-shafer 9dc7c77
Update tests for BaseCache with TypeVar
padraic-shafer a757e9a
Propagate type annotations for mypy compliance
padraic-shafer 54093a1
Resolve mypy type annotations in tests
padraic-shafer d00a18b
Default namespace is empty string for decorators
padraic-shafer 7239f16
Call build_key() with namespace as positional argument
padraic-shafer 5995d64
redis.asyncio.Redis is generic for type checking purposes, but not at…
padraic-shafer e8c2306
Update alt_key_builder example with revised build_key() logickey_builder
padraic-shafer 4126d60
Remove unneeded typing in decorator tests [mypy]
padraic-shafer 3563def
BaseCache key_builder param defaults to lambda
padraic-shafer 07e1919
Remove extraneous comments
padraic-shafer 589d2b8
Remove bound on CacheKeyType
padraic-shafer 08d8bf9
Correct the return annotation for redis_client fixture
padraic-shafer 08b70d7
Test for abstract BaseCache
padraic-shafer 64436a0
Revert extraneous mypy typing fixes
padraic-shafer bc385f7
Revise the changelog for PR #670
padraic-shafer 396952f
Update redis.py
Dreamsorcerer 6c4780e
Update base.py
Dreamsorcerer ce2f26a
Update alt_key_builder.py
Dreamsorcerer 3d50611
Update CHANGES.rst
Dreamsorcerer 23cd481
Update CHANGES.rst
Dreamsorcerer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.