开发者社区 问答 正文

如何保证PrepareQueue的SlotKey和对应的StoreQueue的SlotKey被has

已解决

如何保证PrepareQueue的SlotKey和对应的StoreQueue的SlotKey被hash到同一个Redis槽中呢?

展开
收起
游客lmkkns5ck6auu 2022-10-11 17:21:17 217 分享 版权
1 条回答
写回答
取消 提交回答
  • 推荐回答

    Redis的hash tag功能可以指定SlotKey中只有某一部分参与计算hash,这一部分采用{}包括,因此PrepareQueue的SlotKey中采用{}包括了StoreQueue的SlotKey。以上内容摘自《阿里开发者手册-Redis专题》电子书,点击https://developer.aliyun.com/ebook/download/7770 可下载完整版

    2022-10-12 23:08:51
    赞同 展开评论