You've already forked node-redis
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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user