Class: MemCache::ContinuumEntry

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

Constant Summary collapse

POINTS_PER_SERVER =

this is the default in libmemcached

160

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(val, srv) ⇒ ContinuumEntry

Returns a new instance of ContinuumEntry.



661
662
663
664
# File 'lib/memcache.rb', line 661

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

Instance Attribute Details

#serverObject (readonly)

Returns the value of attribute server.



659
660
661
# File 'lib/memcache.rb', line 659

def server
  @server
end

#valueObject (readonly)

Returns the value of attribute value.



658
659
660
# File 'lib/memcache.rb', line 658

def value
  @value
end

Instance Method Details

#inspectObject



666
667
668
# File 'lib/memcache.rb', line 666

def inspect
  "<#{value}, #{server.host}:#{server.port}>"
end