| Class | Beetle::RedisServerInfo |
| In: |
lib/beetle/redis_server_info.rb
|
| Parent: | Object |
class used by the RedisConfigurationServer to hold information about the current state of the configured redis servers
fetches the server from the insatnces whith the given server string
# File lib/beetle/redis_server_info.rb, line 18
18: def find(server)
19: instances.find{|r| r.server == server}
20: end
all configured redis servers
# File lib/beetle/redis_server_info.rb, line 13
13: def instances
14: @instances ||= @config.redis_servers.split(/ *, */).map{|s| Redis.from_server_string(s, @options)}
15: end