Versions Compared

Key

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

...

Code Block
languagec#
ConsistentHash interface {
    Add(node Node)
    AddWithReplicas(node Node, replicas int)
    AddWithWeight(node Node, weight int) //When specifying weight: actual number of virtual nodes = configured virtual nodes * weight/100
    Get(key Node) Node
    Remove(node Node)
}

...