From 5a56d0fa03089afa61494f4d82d74034c61545ff Mon Sep 17 00:00:00 2001 From: Tim-Smart Date: Fri, 17 Sep 2010 23:13:29 +1200 Subject: [PATCH] client::close method --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index c692358a35..b7fe8ce424 100644 --- a/index.js +++ b/index.js @@ -477,6 +477,11 @@ RedisClient.prototype.send_command = function () { } }; +RedisClient.prototype.close = function close () { + this.stream._events = {}; + return this.stream.end(); +}; + // http://code.google.com/p/redis/wiki/CommandReference exports.commands = [ // Commands operating on all value types