You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
add cluster.duplicate, add some tests
This commit is contained in:
@@ -91,6 +91,10 @@ export default class RedisCluster<M extends RedisModules = RedisModules, S exten
|
||||
this.#Multi = RedisMultiCommand.extend(options);
|
||||
}
|
||||
|
||||
duplicate(): RedisClusterOptions<M, S> {
|
||||
return new (Object.getPrototypeOf(this).constructor)(this.#options);
|
||||
}
|
||||
|
||||
async connect(): Promise<void> {
|
||||
return this.#slots.connect();
|
||||
}
|
||||
|
Reference in New Issue
Block a user