1
0
mirror of https://github.com/redis/node-redis.git synced 2025-12-09 21:21:11 +03:00

docs: Call out sendCommand cluster difference in readme (#3054)

A followup to https://github.com/redis/node-redis/pull/3053
This commit is contained in:
Nathan Friedly
2025-08-14 03:49:05 -04:00
committed by GitHub
parent 82847fb92c
commit fceb60968e

View File

@@ -143,6 +143,8 @@ await client.sendCommand(["SET", "key", "value", "NX"]); // 'OK'
await client.sendCommand(["HGETALL", "key"]); // ['key1', 'field1', 'key2', 'field2']
```
_Note: the [API is different when using a cluster](https://github.com/redis/node-redis/blob/master/docs/clustering.md#unsupported-redis-commands)._
### Transactions (Multi/Exec)
Start a [transaction](https://redis.io/topics/transactions) by calling `.multi()`, then chaining your commands. When