diff options
Diffstat (limited to 'redis/client.py')
-rwxr-xr-x | redis/client.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/redis/client.py b/redis/client.py index 5adaa7c..d77ef01 100755 --- a/redis/client.py +++ b/redis/client.py @@ -707,6 +707,12 @@ class Redis(object): def __repr__(self): return "%s<%s>" % (type(self).__name__, repr(self.connection_pool)) + def __eq__(self, other): + return ( + isinstance(other, self.__class__) + and self.connection_pool == other.connection_pool + ) + def set_response_callback(self, command, callback): "Set a custom Response Callback" self.response_callbacks[command] = callback |