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

Deprecate end() by having it call quit() instead. Marked for eventual removal. Fixes #419

This commit is contained in:
Bryce Baril
2013-04-27 08:10:37 -07:00
parent 9d14970782
commit a8ee9cdb13

View File

@@ -855,12 +855,14 @@ RedisClient.prototype.pub_sub_command = function (command_obj) {
}
};
// Warning! end() has been deprecated and will go away
// in later versions of this client. Please consider switching to
// quit() everywhere you use end.
RedisClient.prototype.end = function () {
this.stream._events = {};
this.connected = false;
this.ready = false;
this.closing = true;
return this.stream.end();
if (exports.debug_mode) {
console.log("Using deprecated .end() method!");
}
return this.quit();
};
function Multi(client, args) {