Tuna cans are cooked after being sealed, so no bacteria gets to the inside after cooking is done. The meat will last for years, but still not forever.
Our character may use a re-usable metallic jar with a screw-on cap to seal food and cook it while jar is sealed.