Skip to content

Commit 33bee83

Browse files
committed
update docs
1 parent 532a395 commit 33bee83

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,12 @@ client.get("missingkey", function(err, reply) {
109109
});
110110
```
111111

112+
If you want receive reply as Buffers instead of Strings just add "b_" prefix before command name:
113+
114+
```js
115+
client.b_get("some key", function(err, buf) {});
116+
```
117+
112118
For a list of Redis commands, see [Redis Command Reference](http://redis.io/commands)
113119

114120
Minimal parsing is done on the replies. Commands that return a integer return JavaScript Numbers, arrays return JavaScript Array. `HGETALL` returns an Object keyed by the hash keys. All strings will either be returned as string or as buffer depending on your setting.
@@ -666,6 +672,10 @@ The command_name has to be lower case.
666672

667673
All commands are sent as multi-bulk commands. `args` can either be an Array of arguments, or omitted / set to undefined.
668674

675+
## client.send_command_buf(command_name[, [args][, callback]])
676+
677+
The same as client.send_command but sending reply as Buffers instead of Strings.
678+
669679
## client.connected
670680

671681
Boolean tracking the state of the connection to the Redis server.

0 commit comments

Comments
 (0)