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

Method destroy

packages/client/lib/client/pool.ts:606–621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

604 }
605
606 destroy() {
607 for (const client of this._self.#idleClients) {
608 client.destroy();
609 }
610 this._self.#idleClients.reset();
611
612 for (const client of this._self.#clientsInUse) {
613 client.destroy();
614 }
615
616 this._self.#clientSideCache?.onPoolClose();
617
618 this._self.#clientsInUse.reset();
619
620 this._self.#isOpen = false;
621 }
622}

Callers 1

connectMethod · 0.95

Calls 2

destroyMethod · 0.65
resetMethod · 0.45

Tested by

no test coverage detected