@@ -144,15 +144,16 @@ resume sending when you get `drain`.
144
144
` client ` will emit ` idle ` when there are no outstanding commands that are awaiting a response.
145
145
146
146
## 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.
147
149
148
150
### 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) `
153
155
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:
156
157
157
158
* ` parser ` : which Redis protocol reply parser to use. Defaults to ` hiredis ` if that module is installed.
158
159
This 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
205
206
client .end ();
206
207
```
207
208
208
- ` createClient() ` returns a ` RedisClient ` object that is named ` client ` in all of the examples here.
209
209
210
210
211
211
## client.auth(password, callback)
0 commit comments