It's worth thinking about what you are trying to do. The bore is likely to have a coating of lead which you want to remove, it's not going to be soluble so solvents won't really help but a penetrating fluid may get between the surface of the bore and the deposits. Of course you could scrub it out with a bronze brush but that can be hard work, best not to let it get bad!
WD40 works quite well because it does have good penetrating properties and you can use it to flush away any debris/dirt and as long as you run dry patches through after cleaning there won't be any oil left to cause problems. If you're curious it's worth visiting the WD40 website where you can get facts about the product, it's something with loads of weird stories circulating on the internet, some are quite funny.
I used to go wildfowling on the local salt marshes and my gun was likely to get splashed with mud and salt water especially if the dog decided to shake itself. My routine was to spray the gun down with plenty of WD40, wipe it and then spray again before wrapping it and putting in a slip. This kept all my guns rust free over many years shooting in bad weather. It's also very good for cleaning fingerprints off stainless steel kitchen appliances.