mirror of
https://github.com/redis/go-redis.git
synced 2025-07-29 17:41:15 +03:00
feat: add protocol option (#2598)
This commit is contained in:
@ -62,6 +62,9 @@ func TestParseURL(t *testing.T) {
|
||||
}, {
|
||||
url: "redis://localhost:123/?db=2&client_name=hi", // client name
|
||||
o: &Options{Addr: "localhost:123", DB: 2, ClientName: "hi"},
|
||||
}, {
|
||||
url: "redis://localhost:123/?db=2&protocol=2", // RESP Protocol
|
||||
o: &Options{Addr: "localhost:123", DB: 2, Protocol: 2},
|
||||
}, {
|
||||
url: "unix:///tmp/redis.sock",
|
||||
o: &Options{Addr: "/tmp/redis.sock"},
|
||||
|
Reference in New Issue
Block a user