You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
make cluster.connect()
return this
This commit is contained in:
@@ -375,8 +375,9 @@ export default class RedisCluster<
|
|||||||
}) as RedisClusterType<_M, _F, _S, _RESP, _TYPE_MAPPING>;
|
}) as RedisClusterType<_M, _F, _S, _RESP, _TYPE_MAPPING>;
|
||||||
}
|
}
|
||||||
|
|
||||||
connect() {
|
async connect() {
|
||||||
return this._self.#slots.connect();
|
await this._self.#slots.connect();
|
||||||
|
return this as unknown as RedisClusterType<M, F, S, RESP, TYPE_MAPPING>;
|
||||||
}
|
}
|
||||||
|
|
||||||
withCommandOptions<
|
withCommandOptions<
|
||||||
|
Reference in New Issue
Block a user