Skip to content

Commit 837ea10

Browse files
author
Benjamin Coe
committed
show off redis:// format overloading
1 parent bd5cc64 commit 837ea10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,11 @@ If you have `redis-server` running on the same computer as node, then the defaul
155155
port and host are probably fine and you don't need to supply any arguments. `createClient()` returns a `RedisClient` object.
156156

157157
### overloading
158-
* `redis.createClient(port,host,options)`
158+
* `redis.createClient(port, host, options)`
159159
* `redis.createClient()` is equivalent to `redis.createClient(6379, '127.0.0.1', {})`
160160
* `redis.createClient(options)` is equivalent to `redis.createClient(6379, '127.0.0.1', options)`
161161
* `redis.createClient(unix_socket, options)`
162+
* `redis.createClient('redis://user:pass@host:port', options)`
162163

163164
`options` is an object with the following possible properties:
164165

0 commit comments

Comments
 (0)