Skip to content

Commit

Permalink
added note about user input
Browse files Browse the repository at this point in the history
as per redis#1265
  • Loading branch information
stockholmux authored Aug 10, 2017
1 parent 1380ad6 commit eb3441c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ client.hmset("key", ["test keys 1", "test val 1", "test keys 2", "test val 2"],
client.hmset("key", "test keys 1", "test val 1", "test keys 2", "test val 2", function (err, res) {});
```

Care should be taken with user input if arrays are possible (via body-parser, query string or other method), as single arguments could be unintentionally interpreted as multiple args.

Note that in either form the `callback` is optional:

```js
Expand Down

0 comments on commit eb3441c

Please sign in to comment.