summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Culley <sam@samculley.co.uk>2021-11-21 07:47:59 +0000
committerGitHub <noreply@github.com>2021-11-21 09:47:59 +0200
commitd2b233384458869270352b8c99ca682ae480da5f (patch)
tree784539042539292fa8fabc4ddbaf46050aa34625
parent791f482dcb320f48cf950c4b2c6047d1981a8f67 (diff)
downloadredis-py-d2b233384458869270352b8c99ca682ae480da5f.tar.gz
fix: adding sentinelcommands to redis client (#1723)
Co-authored-by: Sam Culley <sam.culley@novatiq.com>
-rwxr-xr-xredis/client.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/client.py b/redis/client.py
index 3230043..dc6693d 100755
--- a/redis/client.py
+++ b/redis/client.py
@@ -6,7 +6,8 @@ import re
import threading
import time
import warnings
-from redis.commands import CoreCommands, RedisModuleCommands, list_or_args
+from redis.commands import (CoreCommands, RedisModuleCommands,
+ SentinelCommands, list_or_args)
from redis.connection import (ConnectionPool, UnixDomainSocketConnection,
SSLConnection)
from redis.lock import Lock
@@ -606,7 +607,7 @@ def parse_set_result(response, **options):
return response and str_if_bytes(response) == 'OK'
-class Redis(RedisModuleCommands, CoreCommands, object):
+class Redis(RedisModuleCommands, CoreCommands, SentinelCommands, object):
"""
Implementation of the Redis protocol.