def METHOD_NAME(is_healthy, time):
    """Stores a JSON with a boolean and a datetime timestamp in the cache file
    :param is_healthy: boolean
    :param time: datetime
    """
    cache_content = {}
    cache_content['time'] = time.strftime(HEALTHCHECK_DATEFORMAT)
    cache_content['healthy'] = is_healthy
    with open(HEALTHCHECK_CACHEFILE, 'w+') as f:
        f.write(json.dumps(cache_content))