Skip to content

Commit fceb609

Browse files
authored
docs: Call out sendCommand cluster difference in readme (#3054)
A followup to #3053
1 parent 82847fb commit fceb609

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ await client.sendCommand(["SET", "key", "value", "NX"]); // 'OK'
143143
await client.sendCommand(["HGETALL", "key"]); // ['key1', 'field1', 'key2', 'field2']
144144
```
145145

146+
_Note: the [API is different when using a cluster](https://github.com/redis/node-redis/blob/master/docs/clustering.md#unsupported-redis-commands)._
147+
146148
### Transactions (Multi/Exec)
147149

148150
Start a [transaction](https://redis.io/topics/transactions) by calling `.multi()`, then chaining your commands. When

0 commit comments

Comments
 (0)