* Evaluate the named script on the given commandable object, which might be a * RedisClient or a Batch or Multi object. This exists to facilitate * command pipelining. * * @modifies {arguments}
(commandable, args)
| 899 | * @modifies {arguments} |
| 900 | */ |
| 901 | _evalScriptOn(commandable, args) { |
| 902 | // Precondition: Queue is ready - otherwise lua.shas may not have loaded. |
| 903 | args[0] = lua.shas[args[0]]; |
| 904 | return helpers.callAsync((done) => { |
| 905 | args.push(done); |
| 906 | commandable.evalsha.apply(commandable, args); |
| 907 | }); |
| 908 | } |
| 909 | |
| 910 | /** |
| 911 | * Evaluate the named script, return a promise with its results. |
no outgoing calls
no test coverage detected