Sunday, May 05, 2013

[Help] Serving binary data from redis - Google Groups

[Help] Serving binary data from redis - Google Groups: "This is probably because node_redis defaults to sending back JavaScript Strings for all commands.  You can change this behavior at client create time like this:

var client = require("redis").createClient(null, null, { return_buffers: true });

All Redis "bulk" responses on this client will be sent back as Buffers.

The next release of node_redis will also provide a way to select Strings or Buffers on a per-command basis."

'via Blog this'