diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2016-09-06 12:35:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-06 12:35:01 -0400 |
commit | ac9370f05a86e59f46ad8bf492ece891b4cbb097 (patch) | |
tree | 6b41aa32b3f8c408e91c769b6a0d7476bcc84be8 /redis/connection.py | |
parent | 2ca3ffdc2102ecca1e7e419428706c29684ab38e (diff) | |
parent | 69002968b0f8204adf19c6d81dec22af567b7844 (diff) | |
download | redis-py-ac9370f05a86e59f46ad8bf492ece891b4cbb097.tar.gz |
Merge pull request #645 from cvrebert/redis-url
Link to redis:// & rediss:// scheme IANA registrations in docs
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/redis/connection.py b/redis/connection.py index 27db42a..ed051a3 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -785,9 +785,14 @@ class ConnectionPool(object): unix://[:password]@/path/to/socket.sock?db=0 Three URL schemes are supported: - redis:// creates a normal TCP socket connection - rediss:// creates a SSL wrapped TCP socket connection - unix:// creates a Unix Domain Socket connection + + - ```redis://`` + <http://www.iana.org/assignments/uri-schemes/prov/redis>`_ creates a + normal TCP socket connection + - ```rediss://`` + <http://www.iana.org/assignments/uri-schemes/prov/rediss>`_ creates a + SSL wrapped TCP socket connection + - ``unix://`` creates a Unix Domain Socket connection There are several ways to specify a database number. The parse function will return the first specified option: |