Skip to content

Instantly share code, notes, and snippets.

View nitesh123's full-sized avatar

Nitesh Sinha nitesh123

View GitHub Profile
@nitesh123
nitesh123 / 0002-Modified-JS-parser-Nested-Multi-Bulk-Slowlog.patch
Created September 27, 2012 17:28
node_redis_Modified JS(Old) parser - Nested Multi Bulk - Slowlog
From b7757e028fc471df1409b8f2e4d36f02edf2b44e Mon Sep 17 00:00:00 2001
From: Nitesh <niteshsinha.mail@gmail.com>
Date: Tue, 14 Aug 2012 05:21:53 +0530
Subject: [PATCH 2/3] Modified JS parser - Nested Multi Bulk - Slowlog
---
lib/parser/javascript.js | 529 ++++++++++++++++++++++++----------------------
1 files changed, 279 insertions(+), 250 deletions(-)
diff --git a/lib/parser/javascript.js b/lib/parser/javascript.js
RedisClient.prototype.write = function (args,callback) {
var self = this;
this.send_command('write', to_array(arguments), function (err, res) {
if (err === null) {
}
if (typeof(callback) === 'function') {
callback(err, res);
}
});