When it first came out, WD-40 was all we used for guns. Guess what? I still have those same guns. They were sprayed LIBERALLY inside and out, then left to drip dry barrel DOWN. Then put in a wooden gun cabinet.
A while back I pulled a 870 Rem shot gun that hadn't been removed from that cabinet...