* Returns the connected node client responsible for the given key's slot. * Useful for connection-level operations that the cluster client does not expose * directly, such as `WATCH` followed by `MULTI`/`EXEC`: * * ```javascript * const nodeClient = await cluster.getNodeClientForKey(k
(key: RedisArgument, isReadonly?: boolean)
| 767 | * @param isReadonly - If `true`, may return a replica client; otherwise returns the slot master. |
| 768 | */ |
| 769 | getNodeClientForKey(key: RedisArgument, isReadonly?: boolean) { |
| 770 | return this._self._slots.getClientForKey(key, isReadonly); |
| 771 | } |
| 772 | |
| 773 | /** |
| 774 | * @deprecated use `.masters` instead |
no test coverage detected