Skip to content

fix: adding sentinelcommands to redis client #1723

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 21, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
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
Expand Down Expand Up @@ -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.

Expand Down