Skip to content

Commit

Permalink
fix docu
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarcisio Nunes committed Aug 29, 2019
1 parent a29cb0a commit 6e07ba2
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pyredis/client.py
Expand Up @@ -571,6 +571,11 @@ class SentinelClient(object):
:param sentinels:
Accepts a list of sentinels in this form: [('sentinel1', 26379), ('sentinel2', 26379), ('sentinel3', 26379)]
:type sentinels: list
:param password:
Password used for authentication of Sentinel instance itself. If None, no authentication is done.
Only available starting with Redis 5.0.1.
:type password: str
"""
def __init__(self, sentinels, password=None):
self._conn = None
Expand Down
10 changes: 10 additions & 0 deletions pyredis/pool.py
Expand Up @@ -451,6 +451,11 @@ class SentinelHashPool(
:param retries:
In case a sentinel delivers stale data, how many other sentinels should be tried.
:type retries: int
:param sentinel_password:
Password used for authentication of Sentinel instance itself. If None, no authentication is done.
Only available starting with Redis 5.0.1.
:type sentinel_password: str
"""
def __init__(self, sentinels, buckets, slave_ok=False, retries=3, sentinel_password=None, **kwargs):
super().__init__(**kwargs)
Expand Down Expand Up @@ -612,6 +617,11 @@ class SentinelPool(
:param retries:
In case a sentinel delivers stale data, how many other sentinels should be tried.
:type retries: int
:param sentinel_password:
Password used for authentication of Sentinel instance itself. If None, no authentication is done.
Only available starting with Redis 5.0.1.
:type sentinel_password: str
"""
def __init__(self, sentinels, name, slave_ok=False, retries=3, sentinel_password=None, **kwargs):
super().__init__(**kwargs)
Expand Down

0 comments on commit 6e07ba2

Please sign in to comment.