Skip to content

Commit ab922db

Browse files
hofrobdvora-h
andauthored
fix docs for password protected socket access (#2378)
Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
1 parent 16270e4 commit ab922db

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

CHANGES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
* Documentation fix: password protected socket connection (#2374)
12
* Allow `timeout=None` in `PubSub.get_message()` to wait forever
23
* add `nowait` flag to `asyncio.Connection.disconnect()`
34
* Update README.md links

redis/asyncio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def from_url(cls, url: str, **kwargs):
106106
107107
redis://[[username]:[password]]@localhost:6379/0
108108
rediss://[[username]:[password]]@localhost:6379/0
109-
unix://[[username]:[password]]@/path/to/socket.sock?db=0
109+
unix://[username@]/path/to/socket.sock?db=0[&password=password]
110110
111111
Three URL schemes are supported:
112112

redis/asyncio/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ def from_url(cls: Type[_CP], url: str, **kwargs) -> _CP:
11941194
11951195
redis://[[username]:[password]]@localhost:6379/0
11961196
rediss://[[username]:[password]]@localhost:6379/0
1197-
unix://[[username]:[password]]@/path/to/socket.sock?db=0
1197+
unix://[username@]/path/to/socket.sock?db=0[&password=password]
11981198
11991199
Three URL schemes are supported:
12001200

redis/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def from_url(cls, url, **kwargs):
863863
864864
redis://[[username]:[password]]@localhost:6379/0
865865
rediss://[[username]:[password]]@localhost:6379/0
866-
unix://[[username]:[password]]@/path/to/socket.sock?db=0
866+
unix://[username@]/path/to/socket.sock?db=0[&password=password]
867867
868868
Three URL schemes are supported:
869869

redis/cluster.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def from_url(cls, url, **kwargs):
388388
389389
redis://[[username]:[password]]@localhost:6379/0
390390
rediss://[[username]:[password]]@localhost:6379/0
391-
unix://[[username]:[password]]@/path/to/socket.sock?db=0
391+
unix://[username@]/path/to/socket.sock?db=0[&password=password]
392392
393393
Three URL schemes are supported:
394394

redis/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1221,7 +1221,7 @@ def from_url(cls, url, **kwargs):
12211221
12221222
redis://[[username]:[password]]@localhost:6379/0
12231223
rediss://[[username]:[password]]@localhost:6379/0
1224-
unix://[[username]:[password]]@/path/to/socket.sock?db=0
1224+
unix://[username@]/path/to/socket.sock?db=0[&password=password]
12251225
12261226
Three URL schemes are supported:
12271227

0 commit comments

Comments
 (0)