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

Add string_numbers option to handle very big numbers

This commit is contained in:
Ruben Bridgewater
2016-03-27 03:06:32 +02:00
parent 2e68a7a270
commit 0c5947be51
8 changed files with 62 additions and 89 deletions

View File

@@ -147,8 +147,8 @@ function RedisClient (options, stream) {
returnReply: function (data) {
self.return_reply(data);
},
returnError: function (data) {
self.return_error(data);
returnError: function (err) {
self.return_error(err);
},
returnFatalError: function (err) {
// Error out all fired commands. Otherwise they might rely on faulty data. We have to reconnect to get in a working state again
@@ -157,7 +157,8 @@ function RedisClient (options, stream) {
self.return_error(err);
},
returnBuffers: this.buffers,
name: options.parser
name: options.parser,
stringNumbers: options.string_numbers
});
this.create_stream();
// The listeners will not be attached right away, so let's print the deprecation message while the listener is attached