Sha256: a51be6b42ca6bc1c2b57fdd78e083d717d078e610808715dbc5f8accaf0a794d
Contents?: true
Size: 397 Bytes
Versions: 93
Compression:
Stored size: 397 Bytes
Contents
require "securerandom" module GovukHealthcheck class Redis def name :redis_connectivity end def status client = ::Redis.new key = "healthcheck-#{SecureRandom.hex}" client.set(key, "val") client.get(key) client.del(key) client.close GovukHealthcheck::OK rescue StandardError GovukHealthcheck::CRITICAL end end end
Version data entries
93 entries across 93 versions & 1 rubygems