If stored properly in airtight containers, most whole-grain flours and meals will keep for 1 to 3 months on a cool, dry pantry shelf or 2 to 6 months in the freezer. Once canned foods have been opened, transfer them to a clean, covered container before refrigerating. You can refrigerate opened canned foods in the can if covered, but flavor may be affected.