1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Add option to specify whether to return strings or buffers for bulk data

This commit is contained in:
Pieter Noordhuis
2010-11-30 23:10:02 +01:00
parent 7b4ca228d6
commit a5381964d9
3 changed files with 20 additions and 6 deletions

View File

@@ -110,7 +110,7 @@ function RedisClient(stream, options) {
self.emitted_end = false;
reply_parser.debug_mode = exports.debug_mode;
self.reply_parser = new reply_parser.Parser();
self.reply_parser = new reply_parser.Parser({ return_buffers: false });
// "reply error" is an error sent back by redis
self.reply_parser.on("reply error", function (reply) {
self.return_error(reply);