Good advice,
I would also like to add, be careful about long term storage of acidic foods, like salsa, spaghetti sauce, and certain fruits. It can and will eat through the can. Usually just a pin hole, but enough to taint the contents. Also, be careful of long term storage of fats, oils, or food that contains these ingredients. Some of these items are prone to going rancid. The big surprise to me was ramen noodles. I used to buy it by the case and use occasionally. Sometimes within 6 months the taste was a little off. Longer than that and it can get kinda nasty.
I buy in quantity on sale or at Costco. I do this to save money and to provide a suitable stash for family emergencies.
Buy in quantity. Do not buy more than you will realistically eat before items go bad. Date all items before putting in the pantry. Eat before it goes bad. Rotate your stock. Always eat the oldest dates first. Toss any food that is in bulged cans or has an odd odor.
Good luck, TR