Skip to content

Commit d2b2333

Browse files
sculleySam Culley
and
Sam Culley
authored
fix: adding sentinelcommands to redis client (#1723)
Co-authored-by: Sam Culley <sam.culley@novatiq.com>
1 parent 791f482 commit d2b2333

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

redis/client.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
import threading
77
import time
88
import warnings
9-
from redis.commands import CoreCommands, RedisModuleCommands, list_or_args
9+
from redis.commands import (CoreCommands, RedisModuleCommands,
10+
SentinelCommands, list_or_args)
1011
from redis.connection import (ConnectionPool, UnixDomainSocketConnection,
1112
SSLConnection)
1213
from redis.lock import Lock
@@ -606,7 +607,7 @@ def parse_set_result(response, **options):
606607
return response and str_if_bytes(response) == 'OK'
607608

608609

609-
class Redis(RedisModuleCommands, CoreCommands, object):
610+
class Redis(RedisModuleCommands, CoreCommands, SentinelCommands, object):
610611
"""
611612
Implementation of the Redis protocol.
612613

0 commit comments

Comments
 (0)