Class: Liveness::Dependencies::Redis
- Inherits:
-
Liveness::Dependency
- Object
- Liveness::Dependency
- Liveness::Dependencies::Redis
- Defined in:
- lib/liveness/dependencies/redis.rb
Overview
The PostgreSQL Provider
Instance Attribute Summary
Attributes inherited from Liveness::Dependency
Instance Method Summary collapse
Methods inherited from Liveness::Dependency
#alive?, #connect, #initialize, #status
Constructor Details
This class inherits a constructor from Liveness::Dependency
Instance Method Details
#check! ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/liveness/dependencies/redis.rb', line 13 def check! return false unless defined?(::Redis) redis = connect || ::Redis.new redis.ping == 'PONG' rescue ::Redis::BaseError false end |