Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道incr命令在一个或多个redis服务器中是原子的,但是其他命令例如set命令、hset命令在redis集群环境中仍然是原子的
对于集群模式支持的那些命令,它们是原子的。但是,某些命令受限于集群模式,例如需要多个键的命令。例如,您可以SADD在集群模式下原子地运行,但不能运行SUNION,除非所有键都映射到同一个哈希槽。还hash tag可以帮助我们将键映射到同一个插槽。
SADD
SUNION
hash tag