Class: Dalli::Ring::Entry

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ Entry

Returns a new instance of Entry.



96
97
98
99
# File 'lib/dalli/ring.rb', line 96

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



94
95
96
# File 'lib/dalli/ring.rb', line 94

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



93
94
95
# File 'lib/dalli/ring.rb', line 93

def value
  @value
end