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

Method flushAll

packages/client/lib/client/commands-queue.ts:627–635  ·  view source on GitHub ↗
(err: Error)

Source from the content-addressed store, hash-verified

625 }
626
627 flushAll(err: Error): void {
628 this.resetDecoder();
629 this.#pubSub.reset();
630 this.#flushWaitingForReply(err);
631 for (const node of this.#toWrite) {
632 RedisCommandsQueue.#flushToWrite(node, err);
633 }
634 this.#toWrite.reset();
635 }
636
637 isEmpty() {
638 return this.#toWrite.length === 0 && this.#waitingForReply.length === 0;

Callers 15

#attachListenersMethod · 0.80
destroyMethod · 0.80
FLUSHALL.spec.tsFile · 0.80
steadyStateFunction · 0.80
to-failover.e2e.tsFile · 0.80
pn-failover.e2e.tsFile · 0.80
testWithClientMethod · 0.80
testWithTlsClientMethod · 0.80

Calls 4

resetDecoderMethod · 0.95
#flushWaitingForReplyMethod · 0.95
#flushToWriteMethod · 0.80
resetMethod · 0.45

Tested by 1

steadyStateFunction · 0.64