Remedies for burning when peeing

I recently went to the hospital to get this checked out. It was the ER and they said my cervix is irritated and recommend I see a ob/gyn. (Can't be sure what it is since they're just an ER) I'm going to make an appointment in the morning but the pain when I pee is so unbearable. I notice when I drink a lot of water, it doesn't hurt at all but with caffeine, I cry in pain. Is there any other remedies? A friend of mine told me cranberry juice should help. Edit: The ER doctor tested my urine and said there's no yeast infection or UTI. I made an appointment for the ob/gyn Tuesday (soonest I could get).