Add publish command for redis.