@@ -144,15 +144,16 @@ resume sending when you get `drain`.
144144` client ` will emit ` idle ` when there are no outstanding commands that are awaiting a response.
145145
146146## redis.createClient()
147+ If you have ` redis-server ` running on the same computer as node, then the defaults for
148+ port and host are probably fine and you don't need to supply any arguments. ` createClient() ` returns a ` RedisClient ` object.
147149
148150### overloading
149- * redis.createClient() = redis.createClient(6379, '127.0.0.1', {})
150- * redis.createClient(options) = redis.createClient(6379, '127.0.0.1', options)
151- * redis.createClient(unix_socket, options)
152- * redis.createClient(port, host, options)
151+ * ` redis.createClient(port,host,options) `
152+ * ` redis.createClient() ` is equivalent to ` redis.createClient(6379, '127.0.0.1', {}) `
153+ * ` redis.createClient(options) ` is equivalent to ` redis.createClient(6379, '127.0.0.1', options)`
154+ * ` redis.createClient(unix_socket, options) `
153155
154- If you have ` redis-server ` running on the same computer as node, then the defaults for
155- port and host are probably fine. ` options ` in an object with the following possible properties:
156+ ` options ` is an object with the following possible properties:
156157
157158* ` parser ` : which Redis protocol reply parser to use. Defaults to ` hiredis ` if that module is installed.
158159This may also be set to ` javascript ` .
@@ -205,7 +206,6 @@ You can force an IPv6 if you set the family to 'IPv6'. See nodejs net or dns mod
205206 client .end ();
206207```
207208
208- ` createClient() ` returns a ` RedisClient ` object that is named ` client ` in all of the examples here.
209209
210210
211211## client.auth(password, callback)
0 commit comments