1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

cluster close & destroy

This commit is contained in:
Leibale
2023-05-15 16:56:48 +03:00
parent e3326134ba
commit e27693f13f
2 changed files with 70 additions and 30 deletions

View File

@@ -503,14 +503,28 @@ export default class RedisCluster<
sUnsubscribe = this.SUNSUBSCRIBE;
// quit(): Promise<void> {
// return this.#slots.quit();
// }
/**
* @deprecated Use `close` instead.
*/
quit() {
return this._slots.quit();
}
disconnect(): Promise<void> {
/**
* @deprecated Use `destroy` instead.
*/
disconnect() {
return this._slots.disconnect();
}
close() {
return this._slots.close();
}
destroy() {
return this._slots.destroy();
}
nodeClient(node: ShardNode<M, F, S, RESP>) {
return this._slots.nodeClient(node);
}