Dollar General and Dollar Tree have really crap canned goods, the off brands do not last and may be dangerous/deadly to consume.
I have had cans explode etc ... then I went in a rotated out everything that i even thought came from either place.
(Made a big mess and I freaked out and convinced myself that every can nearby had to be not only cleaned but sterilized)
I now also take large clear heavy trash bags and sorta kinda vacuum seal 96 can (+ or -) packs, that keeps the cans clean and makes it easier to rotate and use as needed.
Buy canned goods only from supermarket 'Store brands', and only long term store those cans that are NOT "EASY PULL TAB".
Easy pull tab have a plastic layer under the lid which can give way over time, and allow bacteria to enter; generally, they are safe for slightly more than 6 months storage.
Cans that contain acidic (tomato , picked foods and veggies, etc.)foods will taste 'tinney' after a few months to 2 years in storage. Rotate them out frequently.