diff options
author | Gábor Boros <gabor.brs@gmail.com> | 2021-08-25 16:08:17 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-25 14:08:17 +0200 |
commit | 39584a194055bc42f4836a5213eb0be141001500 (patch) | |
tree | 2539852339806cf65e540608dab8177b7693502f /kombu/entity.py | |
parent | 8d15a6602dd48c40cfa3105852a81e4369102cb3 (diff) | |
download | kombu-39584a194055bc42f4836a5213eb0be141001500.tar.gz |
Add global key prefix for keys set by Redis transporter (#1349)
* Introduce global key prefix for redis transport
Co-authored-by: Matus Valo <matusvalo@users.noreply.github.com>
* 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 <matusvalo@users.noreply.github.com>
* fix: typo
* fix: lint
Co-authored-by: Antonin Delpeuch <antonin@delpeuch.eu>
Co-authored-by: Matus Valo <matusvalo@users.noreply.github.com>
Co-authored-by: Jillian Vogel <jill@opencraft.com>
Diffstat (limited to 'kombu/entity.py')
0 files changed, 0 insertions, 0 deletions