Class: CSC::RedisServer

Inherits:
Server
  • Object
show all
Defined in:
lib/cache-server-connector/redis-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 = 6379) ⇒ RedisServer



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

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