Cephalexin is a generic prescription drug that treats infections. Only the oral capsule ... Other factors may also affect whether cephalexin is a good treatment option for you.