class Redis::HashRing

def initialize(nodes=[], replicas=POINTS_PER_SERVER)

replicas are required to improve the distribution.
replicas indicates how many virtual points should be used pr. node,
nodes is a list of objects that have a proper to_s representation.
def initialize(nodes=[], replicas=POINTS_PER_SERVER)
  @replicas = replicas
  @ring = {}
  @nodes = []
  @sorted_keys = []
  nodes.each do |node|
    add_node(node)
  end
end