We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c6e8e6 commit cbd5c78Copy full SHA for cbd5c78
src/pyres/__init__.py
@@ -18,8 +18,10 @@ def str_to_class(s):
18
19
class ResQ(object):
20
21
- def __init__(self, server="localhost:6379"):
+ def __init__(self, server="localhost:6379", password=None):
22
self.redis = server
23
+ if password:
24
+ self.redis.auth(password)
25
self._watched_queues = set()
26
27
def push(self, queue, item):
0 commit comments