Skip to content
This repository has been archived by the owner on Apr 3, 2019. It is now read-only.

Can we connect to a remote Redis server? #102

Open
khanhhua opened this issue Mar 22, 2016 · 0 comments
Open

Can we connect to a remote Redis server? #102

khanhhua opened this issue Mar 22, 2016 · 0 comments

Comments

@khanhhua
Copy link

Class Connection constructor does not have argument for db name and password? How can I connect from Heroku to Redis Cloud?

class Connection(object):
    def __init__(self, host='localhost', port=6379, unix_socket_path=None,
                 event_handler_proxy=None, stop_after=None, io_loop=None):
        self.host = host
        self.port = port
        self.unix_socket_path = unix_socket_path
        self._event_handler = event_handler_proxy
        self.timeout = stop_after
        self._stream = None
        self._io_loop = io_loop

        self.in_progress = False
        self.read_callbacks = set()
        self.ready_callbacks = deque()
        self._lock = 0
        self.info = {'db': 0, 'pass': None}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant