Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

Conversation

Seojiwoong
Copy link

change self.get to getattr in rediscluster/client.py _get_single_item

Grokzen and others added 20 commits December 26, 2014 20:39
Major refactoring (0.2.0)
PUBSUB commands added to redis-py in 3f4ac6, which according to Redis docs (https://redis.io/commands/pubsub, https://redis.io/topics/pubsub) can be sent to any node
Added parsing callbacks for all three `PUBSUB` sub-commands, which give these commands the same behaviour as in single-node Redis & `redis-py`.

**Note** that the switches on each method to *not* aggregate responses into one appear to not be bubbling through to the callback.
…BSUB commands

``**kwargs`` is not bubbled through to all result callbacks to enable the toggle to reach the PUBSUB parsing methods in `utils.py`. This adds `**kwargs` to the `StrictRedisCluster._merge_result` method's signature.
* Using `string_keys_to_dict` for all RESULT_CALLBACKS
*  Simplified `subscribe` calls in test cases to remove unnecessary variable declarations
*  Remove change to `_random_good_hashslot_key` which was not related to PR
* Add `set_result_callback(command, callback)` to match Redis-Py feature `set_response_callback`
* Skipping redis-py versions below `2.10.6` for `PUBSUB` tests
* Add docstring to `TestPubSubPubSubSubcommands` class
* Adding docs on pubsub subcommands, and to release notes.
@Seojiwoong Seojiwoong closed this Aug 4, 2017
@coveralls
Copy link

coveralls commented Aug 4, 2017

Coverage Status

Coverage remained the same at 84.391% when pulling 8349fb8 on Seojiwoong:pull-request into 078867b on Grokzen:unstable.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants