* 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>
* Port of redis code improvements from prior revision
Add fakeredis requirement
* refine variable naming based on PR feedback.
* Remove python2 code style and remove unittest.Testcase from test_redis.py
* Code refactor of redis.py and test_redis.py
Co-authored-by: Matus Valo <matusvalo@gmail.com>
* Add support for health_check_interval option in broker_transport_options. #1114
* Added Keivn Fox to authors.
* Do not use default arg for pop() method.
* Add dedicated test case for configurable health_check
* Add test case for when health_check_interval is not supported by connection_class in redis.
* Fix Flake8
* Added more test cases for redis.
* Updated tests.
* issue-1087 Revert _lookup api and correct redis implemetnation. Update variable naming to be self documenting and more readable by non native speakers. Major overhaul of redis test cases by adding more full featured fakeredis module.
* Add more test cases to boost coverage of kombu redis transport.
* Refactor the producer consumer test cases to be based on original mocks and be passing
* Fix lingering line length issue in test.
* Fixing MongoDB backend to work properly with TTL
Bumping pymongo version to 3.8.0
* Updating authors
* Adding dependencies to travis config
* Fixing travis test cases
* Changing pymongo version to align with mongo result backend
* Fix a deprecation warning about logger.warn()
This fixes a deprecation warning from the standard library's logging module:
> The 'warn' method is deprecated, use 'warning' instead
* Update test