1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-09 00:22:08 +03:00
Files
node-redis/lib/command.js
2016-03-07 01:57:56 +01:00

13 lines
410 B
JavaScript

'use strict';
// This Command constructor is ever so slightly faster than using an object literal, but more importantly, using
// a named constructor helps it show up meaningfully in the V8 CPU profiler and in heap snapshots.
function Command(command, args, callback) {
this.command = command;
this.args = args;
this.buffer_args = false;
this.callback = callback;
}
module.exports = Command;