diff options
author | Chayim <chayim@users.noreply.github.com> | 2021-12-30 12:52:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-30 12:52:11 +0200 |
commit | bc3dbb45d7236f96d614c33684a94f3e0fd9ac4a (patch) | |
tree | 5da61d39c34e3ad558be7c78c9f54c185084968e /redis/connection.py | |
parent | deaaa536568e50b6ce958de0dd6306392e98f13e (diff) | |
download | redis-py-bc3dbb45d7236f96d614c33684a94f3e0fd9ac4a.tar.gz |
Documentation cleanup (#1841)
Diffstat (limited to 'redis/connection.py')
-rwxr-xr-x | redis/connection.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/redis/connection.py b/redis/connection.py index bde74b1..8fdb4bd 100755 --- a/redis/connection.py +++ b/redis/connection.py @@ -1145,11 +1145,11 @@ def parse_url(url): class ConnectionPool: """ Create a connection pool. ``If max_connections`` is set, then this - object raises :py:class:`~redis.ConnectionError` when the pool's + object raises :py:class:`~redis.exceptions.ConnectionError` when the pool's limit is reached. By default, TCP connections are created unless ``connection_class`` - is specified. Use :py:class:`~redis.UnixDomainSocketConnection` for + is specified. Use class:`.UnixDomainSocketConnection` for unix sockets. Any additional keyword arguments are passed to the constructor of @@ -1181,6 +1181,7 @@ class ConnectionPool: There are several ways to specify a database number. The first value found will be used: + 1. A ``db`` querystring option, e.g. redis://localhost?db=0 2. If using the redis:// or rediss:// schemes, the path argument of the url, e.g. redis://localhost/0 |