def METHOD_NAME(end_point_name, model_name, token):
    if token is None:
        return False
    FedMLModelCache.get_instance().set_redis_params(settings.redis_addr, settings.redis_port, settings.redis_password)
    cached_token = FedMLModelCache.get_instance(settings.redis_addr, settings.redis_port). \
        get_end_point_token(end_point_name, model_name)
    if cached_token is not None and cached_token == token:
        return True
    return False