MCPcopy
hub / github.com/redis/node-redis / exec

Method exec

packages/client/lib/client/legacy-mode.ts:167–178  ·  view source on GitHub ↗
(cb?: (err: ErrorReply | null, replies?: Array<unknown>) => unknown)

Source from the content-addressed store, hash-verified

165 }
166
167 exec(cb?: (err: ErrorReply | null, replies?: Array<unknown>) => unknown) {
168 const promise = this.#client._executeMulti(this.#multi.queue);
169
170 if (!cb) {
171 promise.catch(err => this.#client.emit('error', err));
172 return;
173 }
174
175 promise
176 .then(results => cb(null, this.#multi.transformReplies(results)))
177 .catch(err => cb?.(err));
178 }
179}

Callers 10

pool.spec.tsFile · 0.45
#parseUnixURLMethod · 0.45
key-prefix.spec.tsFile · 0.45
tracing.spec.tsFile · 0.45
index.spec.tsFile · 0.45
metrics.spec.tsFile · 0.45
extractRedisStatusCodeFunction · 0.45
transactionFunction · 0.45

Calls 2

transformRepliesMethod · 0.80
_executeMultiMethod · 0.45

Tested by

no test coverage detected