Class Redis::HashRing
In: lib/redis/hash_ring.rb
Parent: Object

Methods

Constants

POINTS_PER_SERVER = 160

Attributes

nodes  [R] 
replicas  [R] 
ring  [R] 
sorted_keys  [R] 

Public Class methods

Find the closest index in HashRing with value <= the given value

nodes is a list of objects that have a proper to_s representation. replicas indicates how many virtual points should be used pr. node, replicas are required to improve the distribution.

Public Instance methods

Adds a `node` to the hash ring (including a number of replicas).

get the node in the hash ring for this key

[Validate]