is redis command still atomic in redis cluster environment?

◇◆丶佛笑我妖孽 提交于 2019-12-12 05:14:34

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/44177982/is-redis-command-still-atomic-in-redis-cluster-environment

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!