redis ERR 'EVAL' command keys must in same slot lua脚本为保证事务,传入的key必须是在同一个slot中。Redis集群引入了哈希槽的概念,一共有16348个slot,然后根据 CRC16(key) mod 16384 来计算放入哪个slot中。