1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Fix documentation for detect_buffers.

This commit is contained in:
Matt Ranney
2011-11-16 10:29:58 -10:00
parent 64ad9ede42
commit 336030a33d

View File

@@ -173,13 +173,13 @@ port and host are probably fine. `options` in an object with the following poss
This may also be set to `javascript`.
* `return_buffers`: defaults to false. If set to `true`, then all replies will be sent to callbacks as node Buffer
objects instead of JavaScript Strings.
* `buffered_input`: default to false. If set to `true`, then replies will be sent to callbacks as node Buffer objects
* `detect_buffers`: default to false. If set to `true`, then replies will be sent to callbacks as node Buffer objects
if any of the input arguments to the original command were Buffer objects.
This option will let you switch between Buffers and Strings on a per-command basis. `return_buffers` applies to every command
on a client.
This option lets you switch between Buffers and Strings on a per-command basis, whereas `return_buffers` applies to
every command on a client.
var redis = require("redis"),
client = redis.createClient(null, null, {buffered_input: true});
client = redis.createClient(null, null, {detect_buffers: true});
client.set("foo_rand000000000000", "OK");