Skip to content

Commit 98e7071

Browse files
committed
sentinel: Add SentinelManagedSSLConnection
Create a simple class which takes in both: - SentinelManaged - SSLConnection in cases where the sentinel is being used with a TLS enabled redis setup.
1 parent ddd1496 commit 98e7071

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

redis/sentinel.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from redis.client import Redis
55
from redis.commands import SentinelCommands
6-
from redis.connection import ConnectionPool, Connection
6+
from redis.connection import ConnectionPool, Connection, SSLConnection
77
from redis.exceptions import (ConnectionError, ResponseError, ReadOnlyError,
88
TimeoutError)
99
from redis.utils import str_if_bytes
@@ -66,6 +66,10 @@ def read_response(self):
6666
raise
6767

6868

69+
class SentinelManagedSSLConnection(SentinelManagedConnection, SSLConnection):
70+
pass
71+
72+
6973
class SentinelConnectionPool(ConnectionPool):
7074
"""
7175
Sentinel backed connection pool.

0 commit comments

Comments
 (0)