You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
feat: accept Map and Set and flatten arguments
This commit is contained in:
@ -4,9 +4,10 @@ const betterStackTraces = /development/i.test(process.env.NODE_ENV) || /\bredis\
|
||||
|
||||
// TODO: Change the arguments to an object
|
||||
// callOnWrite could be two things now
|
||||
function Command (command, args, callOnWrite, transformer) {
|
||||
this.command = command
|
||||
function Command (name, args, callOnWrite, transformer) {
|
||||
this.command = name
|
||||
this.args = args
|
||||
this.argsLength = 0
|
||||
this.bufferArgs = false
|
||||
var callback
|
||||
transformer = transformer || function (err, res) {
|
||||
|
Reference in New Issue
Block a user