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

Add name property to all Redis functions

This commit is contained in:
Ruben Bridgewater
2016-05-27 16:25:59 +02:00
parent 55528d8b1b
commit ffaaf0f6d5
3 changed files with 9 additions and 2 deletions

View File

@@ -96,7 +96,7 @@ function quit_callback (self, callback) {
};
}
RedisClient.prototype.QUIT = RedisClient.prototype.quit = function (callback) {
RedisClient.prototype.QUIT = RedisClient.prototype.quit = function quit (callback) {
// TODO: Consider this for v.3
// Allow the quit command to be fired as soon as possible to prevent it landing in the offline queue.
// this.ready = this.offline_queue.length === 0;
@@ -108,7 +108,7 @@ RedisClient.prototype.QUIT = RedisClient.prototype.quit = function (callback) {
};
// Only works with batch, not in a transaction
Multi.prototype.QUIT = Multi.prototype.quit = function (callback) {
Multi.prototype.QUIT = Multi.prototype.quit = function quit (callback) {
var self = this._client;
var call_on_write = function () {
// If called in a multi context, we expect redis is available