def check
      test_value.tap do |value|
        Rails.cache.write(cache_key, value)
        if value == Rails.cache.read(cache_key)
          mark_message "Able to read and write via #{humanize_cache_store_name}"
        else
          mark_failure
          mark_message "Value read from the cache does not match the value written"
        end
      end
    rescue => error
      mark_failure
      mark_message "Connection failure: #{error}"
    end
def check
      test_value.tap do |value|
        Rails.cache.write(cache_key, value)
        if value == Rails.cache.read(cache_key)
          mark_message "Able to read and write via #{humanize_cache_store_name}"
        else
          mark_failure
          mark_message "Value read from the cache does not match the value written"
        end
      end
    rescue => error
      mark_failure
      mark_message "Connection failure: #{error}"
    end
Public: Check whether cache can be written to and read from