class Healthchecker::Checks::Redis

Public Instance Methods

check!() click to toggle source
# File lib/healthchecker/checks/redis.rb, line 6
def check!
  client = options[:client] || Redis.new
  result = client.ping
  return if result == 'PONG'
  raise "Redis returned #{result.inspect} instead of PONG"
end