forked from celery/kombu
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add global key prefix for keys set by Redis transporter (celery#1349)
* Introduce global key prefix for redis transport Co-authored-by: Matus Valo <[email protected]> * refactor: use a custom redis client As per the suggestions, refactor the redis key prefixing to use a custom redis client that prefixes the keys it uses. The custom client implementation does not prefix every key by default as the way of prefixing keys may differ for some redis commands, instead it lists those keys that will be prefixed. In case of commands, where multiple keys can be passed as an argument, the custom client defines where the arg positions are starting and ending for the given command. * test: fix unit tests by moving import statement * fix: wrap redis.parse_response to remove key prefixes Co-authored-by: Matus Valo <[email protected]> * fix: typo * fix: lint Co-authored-by: Antonin Delpeuch <[email protected]> Co-authored-by: Matus Valo <[email protected]> Co-authored-by: Jillian Vogel <[email protected]> (cherry picked from commit 39584a1)
- Loading branch information
1 parent
6150dae
commit fa1d816
Showing
3 changed files
with
268 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,6 +53,7 @@ Fernando Jorge Mota <[email protected]> | |
Flavio [FlaPer87] Percoco Premoli <[email protected]> | ||
Florian Munz <[email protected]> | ||
Franck Cuny <[email protected]> | ||
Gábor Boros <[email protected]> | ||
Germán M. Bravo <[email protected]> | ||
Gregory Haskins <[email protected]> | ||
Hank John <[email protected]> | ||
|
This file contains 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 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