only publish to redis if connection info is supplied