• 请不要在回答技术问题时复制粘贴 AI 生成的内容
asanelder
V2EX  ›  程序员

有人自定义过 SharedJedis 的 Hashing 么?

  •  
  •   asanelder · Mar 11, 2021 · 808 views
    This topic created in 1880 days ago, the information mentioned may be changed or developed.
    现在是这样的, 有四个 redis 实例, 之前的 hash 函数为

    hash(x) = x % 4

    现在, 想在这四个 redis 实例(已有数据)上使用 SharedJedis, 但好像要自定义 Hashing 函数.

    俺不知道怎么设计这个 Hashing 函数, 有没有铁子知道昨做?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1026 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 18:04 · PVG 02:04 · LAX 11:04 · JFK 14:04
    ♥ Do have faith in what you're doing.