Redis Cluster multi-key command optimisation with hash tags
Redis Cluster multi-key command optimisation with hash tags
In Redis Cluster, those buckets are called hash slots, and there are 16384 of them Or, if you prefer round hexadecimal numbers, 0x4000 The same logic applies:
Hash tags are a way to ensure that multiple keys are allocated in the same hash slot This is used in order to implement multi-key operations in Redis Cluster
redisexceptionsresponseerror_ crossslot keys in request don''t hash to the same slot Redis cluster gives us the ability to scale our Redis setup horizontally not just for reads but also for writes, and you should consider it
redis crossslot keys in request don''t hash to the same slot Cross-slot commands: In Redis Cluster, you can't perform operations that involve multiple keys unless they are all part of the same hash slot · Transactions: