Method: ConsistentHashing::Ring#node_for
- Defined in:
- lib/consistent_hashing/ring.rb
#node_for(key) ⇒ Object
Public: gets the node where to store the key
Returns: the node Object
66 67 68 |
# File 'lib/consistent_hashing/ring.rb', line 66 def node_for(key) point_for(key).node end |