I heartily recommend citrus solvents for cleaning chains and cassettes. You can buy the gallon jugs at Home Depot and dilute them.
A toothbrush is really useful for cleaning these parts, and I do the toothbrush thing about every couple hundred miles. I remove and soak the chain and cassette in diluted citrus solvent every 500-600 miles.