Class: Sensu::Redis
- Inherits:
-
Object
- Object
- Sensu::Redis
- Defined in:
- lib/sensu/redis.rb
Class Method Summary collapse
Class Method Details
.connect(options = {}) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/sensu/redis.rb', line 7 def self.connect(={}) ||= Hash.new connection = EM::Protocols::Redis.connect() connection.info do |info| if info[:redis_version] < '1.3.14' klass = EM::Protocols::Redis::RedisError = 'redis version must be >= 2.0 RC 1' connection.error(klass, ) end end connection end |