Class: CSC::MemcachedServer

Inherits:
Server
  • Object
show all
Defined in:
lib/cache-server-connector/memcached-server.rb

Instance Attribute Summary

Attributes inherited from Server

#called, #host, #port, #weight, #weight_called

Instance Method Summary collapse

Methods inherited from Server

#indexed, #to_s

Constructor Details

#initialize(host, weight = 1, port = 11211) ⇒ MemcachedServer

Returns a new instance of MemcachedServer.



3
4
5
6
7
8
9
# File 'lib/cache-server-connector/memcached-server.rb', line 3

def initialize(host, weight = 1, port = 11211)
  @host = host
  @weight = weight
  @port = port
  @called = 0
  @weight_called = 0
end