You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each Redis command is exposed as a function on the `client` object.
84
82
All functions take either an `args` Array plus optional `callback` Function or
85
83
a variable number of individual arguments followed by an optional callback.
86
-
Here are examples how to use the api:
84
+
Examples:
87
85
88
86
```js
89
87
client.hmset(["key", "test keys 1", "test val 1", "test keys 2", "test val 2"], function (err, res) {});
@@ -182,7 +180,7 @@ __Tip:__ If the Redis server runs on the same machine as the client consider usi
182
180
| host | 127.0.0.1 | IP address of the Redis server |
183
181
| port | 6379 | Port of the Redis server |
184
182
| path | null | The UNIX socket string of the Redis server |
185
-
| url | null | The URL of the Redis server. Format: `[redis:]//[user][:password@][host][:port][/db-number][?db=db-number[&password=bar[&option=value]]]` (More info avaliable at [IANA](http://www.iana.org/assignments/uri-schemes/prov/redis)). |
183
+
| url | null | The URL of the Redis server. Format: `[redis:]//[[user][:password@]][host][:port][/db-number][?db=db-number[&password=bar[&option=value]]]` (More info avaliable at [IANA](http://www.iana.org/assignments/uri-schemes/prov/redis)). |
186
184
| parser | hiredis | If hiredis is not installed, automatic fallback to the built-in javascript parser |
187
185
| string_numbers | null | Set to `true`, `node_redis` will return Redis number values as Strings instead of javascript Numbers. Useful if you need to handle big numbers (above `Number.MAX_SAFE_INTEGER === 2^53`). Hiredis is incapable of this behavior, so setting this option to `true` will result in the built-in javascript parser being used no matter the value of the `parser` option. |
188
186
| return_buffers | false | If set to `true`, then all replies will be sent to callbacks as Buffers instead of Strings. |
@@ -363,7 +361,7 @@ client.HMSET(key1, "0123456789", "abcdefghij", "some manner of key", "a type of
363
361
364
362
## Publish / Subscribe
365
363
366
-
Here is a simple example of the API for publish / subscribe. This program opens two
364
+
Example of the publish / subscribe API. This program opens two
367
365
client connections, subscribes to a channel on one of them, and publishes to that
368
366
channel on the other:
369
367
@@ -539,7 +537,7 @@ across all client connections, including from other client libraries and other c
539
537
A `monitor` event is going to be emitted for every command fired from any client connected to the server including the monitoring client itself.
540
538
The callback for the `monitor` event takes a timestamp from the Redis server, an array of command arguments and the raw monitoring string.
0 commit comments