I had a stock of canned tuna go bad on me after about 6 years. To be fair, they were stored in my Sacramento home garage where temps got up to 108 degrees in August. I won’t do that again.
The next time, I would keep them inside the climate controlled house.
Your A/C is liable to go down before food becomes scarce.
Buy non-perishables!
Regards,