It depends on what is causing it. A mild infection like a conjunctivitis will go away in a week with the proper drops, More serious infections like orbital celulitis require oral or IV antibiotics.
See your Optometrist for a proper diagnosis
See your Optometrist for a proper diagnosis