Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Map object into hash space + Map cache into hash space

1- Define the interface (3 core functions)

Code Block
languagec#
ConsistentHash interface {
    Add(node Node)
    AddWithReplicas(node Node, replicas int)
    AddWithWeight(node Node, weight int)
    Get(key Node) Node
    Remove(node Node)
}