Sha256: 8454f72f89840908efdcaf81d39fb50a07631e2ae8b0a9468145c5a77327d1da

Contents?: true

Size: 315 Bytes

Versions: 105

Compression:

Stored size: 315 Bytes

Contents

module GovukHealthcheck
  class RailsCache
    def name
      :rails_cache
    end

    def status
      ::Rails.cache.write("healthcheck-cache", true)
      raise unless ::Rails.cache.read("healthcheck-cache")

      GovukHealthcheck::OK
    rescue StandardError
      GovukHealthcheck::CRITICAL
    end
  end
end

Version data entries

105 entries across 105 versions & 1 rubygems

Version Path
govuk_app_config-9.0.2 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-9.0.1 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-9.0.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-8.1.1 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-8.1.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-8.0.2 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-8.0.1 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-8.0.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-7.2.1 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-7.2.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-7.1.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-7.0.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-6.0.1 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-6.0.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-5.1.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-5.0.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-4.13.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-4.12.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-4.11.1 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
govuk_app_config-4.11.0 lib/govuk_app_config/govuk_healthcheck/rails_cache.rb