MCPcopy Index your code
hub / github.com/bee-queue/bee-queue / _evalScriptOn

Method _evalScriptOn

lib/queue.js:901–908  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

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.

Callers 2

saveAllMethod · 0.95
_evalScriptMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected