Skip to content

Commit

Permalink
fix docs for password protected socket access (#2378)
Browse files Browse the repository at this point in the history
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
  • Loading branch information
hofrob and dvora-h authored Nov 7, 2022
1 parent 16270e4 commit ab922db
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* Documentation fix: password protected socket connection (#2374)
* Allow `timeout=None` in `PubSub.get_message()` to wait forever
* add `nowait` flag to `asyncio.Connection.disconnect()`
* Update README.md links
Expand Down
2 changes: 1 addition & 1 deletion redis/asyncio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def from_url(cls, url: str, **kwargs):
redis://[[username]:[password]]@localhost:6379/0
rediss://[[username]:[password]]@localhost:6379/0
unix://[[username]:[password]]@/path/to/socket.sock?db=0
unix://[username@]/path/to/socket.sock?db=0[&password=password]
Three URL schemes are supported:
Expand Down
2 changes: 1 addition & 1 deletion redis/asyncio/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1194,7 +1194,7 @@ def from_url(cls: Type[_CP], url: str, **kwargs) -> _CP:
redis://[[username]:[password]]@localhost:6379/0
rediss://[[username]:[password]]@localhost:6379/0
unix://[[username]:[password]]@/path/to/socket.sock?db=0
unix://[username@]/path/to/socket.sock?db=0[&password=password]
Three URL schemes are supported:
Expand Down
2 changes: 1 addition & 1 deletion redis/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ def from_url(cls, url, **kwargs):
redis://[[username]:[password]]@localhost:6379/0
rediss://[[username]:[password]]@localhost:6379/0
unix://[[username]:[password]]@/path/to/socket.sock?db=0
unix://[username@]/path/to/socket.sock?db=0[&password=password]
Three URL schemes are supported:
Expand Down
2 changes: 1 addition & 1 deletion redis/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ def from_url(cls, url, **kwargs):
redis://[[username]:[password]]@localhost:6379/0
rediss://[[username]:[password]]@localhost:6379/0
unix://[[username]:[password]]@/path/to/socket.sock?db=0
unix://[username@]/path/to/socket.sock?db=0[&password=password]
Three URL schemes are supported:
Expand Down
2 changes: 1 addition & 1 deletion redis/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1221,7 +1221,7 @@ def from_url(cls, url, **kwargs):
redis://[[username]:[password]]@localhost:6379/0
rediss://[[username]:[password]]@localhost:6379/0
unix://[[username]:[password]]@/path/to/socket.sock?db=0
unix://[username@]/path/to/socket.sock?db=0[&password=password]
Three URL schemes are supported:
Expand Down

0 comments on commit ab922db

Please sign in to comment.