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

chore: add print helper again and refactor some code

Expose the RedisClient directly instead of only being a property
This commit is contained in:
Ruben Bridgewater
2017-05-29 18:23:24 +02:00
parent 4e593587cb
commit 0276e15f04
14 changed files with 169 additions and 104 deletions

View File

@@ -145,14 +145,14 @@ class Multi {
/**
* Creates an instance of Multi.
* @param {RedisClient} client
* @param {string} type
* @param {any[]} [args]
* @param {string} [type]
*
* @memberof Multi
*/
constructor (client, type, args) {
constructor (client, args, type) {
this._client = client
this._type = type
this._type = typeof type === 'string' ? type : 'multi'
this._queue = new Queue()
// Either undefined or an array. Fail hard if it's not an array
if (args) {