Reputation: 63
i know incr command is atomic in a or more redis server,but other command e.g. set command、Hset command that are still atomic in redis cluster environment
Upvotes: 2
Views: 2711
Reputation: 22906
For those commands supported by cluster mode, they are atomic. However, some commands are limited supported by cluster mode, e.g. commands that take multiple keys. For example, you can run SADD
atomically in cluster mode, but you cannot run SUNION
, unless all keys are mapped to the same hash slot. Also hash tag
can help us map keys to the same slot.
Upvotes: 5