Class: MemCache::ContinuumEntry
- Inherits:
-
Object
- Object
- MemCache::ContinuumEntry
- Defined in:
- lib/memcache.rb
Constant Summary collapse
- POINTS_PER_SERVER =
this is the default in libmemcached
160
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(val, srv) ⇒ ContinuumEntry
constructor
A new instance of ContinuumEntry.
- #inspect ⇒ Object
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
#server ⇒ Object (readonly)
Returns the value of attribute server.
659 660 661 |
# File 'lib/memcache.rb', line 659 def server @server end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
658 659 660 |
# File 'lib/memcache.rb', line 658 def value @value end |
Instance Method Details
#inspect ⇒ Object
666 667 668 |
# File 'lib/memcache.rb', line 666 def inspect "<#{value}, #{server.host}:#{server.port}>" end |