Class: CSC::RedisServer
- 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
-
#initialize(host, weight = 1, port = 6379) ⇒ RedisServer
constructor
A new instance of RedisServer.
Methods inherited from Server
Constructor Details
#initialize(host, weight = 1, port = 6379) ⇒ RedisServer
Returns a new instance of 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 |