Class: HealthMonitor::Providers::Redis

Inherits:
Base
  • Object
show all
Defined in:
lib/health_monitor/providers/redis.rb

Defined Under Namespace

Classes: Configuration

Instance Attribute Summary

Attributes inherited from Base

#configuration, #request

Instance Method Summary collapse

Methods inherited from Base

configurable?, configure, #initialize, provider_name

Constructor Details

This class inherits a constructor from HealthMonitor::Providers::Base

Instance Method Details

#check!Object



28
29
30
31
32
33
34
35
# File 'lib/health_monitor/providers/redis.rb', line 28

def check!
  check_values!
  check_max_used_memory!
rescue Exception => e
  raise RedisException.new(e.message)
ensure
  redis.close
end