Class: Dalli::Ring::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/dalli/ring.rb

Overview

Represents a point in the consistent hash ring implementation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



147
148
149
150
# File 'lib/dalli/ring.rb', line 147

def initialize(val, srv)
  @value = val
  @server = srv
end

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



145
146
147
# File 'lib/dalli/ring.rb', line 145

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



145
146
147
# File 'lib/dalli/ring.rb', line 145

def value
  @value
end