You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Update documentation.
This commit is contained in:
@@ -48,9 +48,9 @@ to `127.0.0.1`. If you have Redis running on the same computer as node, then th
|
|||||||
### Sending Commands
|
### Sending Commands
|
||||||
|
|
||||||
Each Redis command is exposed as a function on the `client` object.
|
Each Redis command is exposed as a function on the `client` object.
|
||||||
All functions take either take either `args` Array and `callback` Function or
|
All functions take either take either an `args` Array plus optional `callback` Function or
|
||||||
a variable number of individual arguments followed by an optional callback. Here is an example of passing an array of arguments
|
a variable number of individual arguments followed by an optional callback.
|
||||||
and a callback:
|
Here is an example of passing an array of arguments and a callback:
|
||||||
|
|
||||||
client.mset(["test keys 1", "test val 1", "test keys 2", "test val 2"], function (err, res) {});
|
client.mset(["test keys 1", "test val 1", "test keys 2", "test val 2"], function (err, res) {});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user