Dried foods, like beans and grains, can last 20 to 30 years when stored correctly in sealed foil bags. Because storing dried foods in mylar bags sealed inside a food-grade bucket is the best storage method, foods stored in this manner can reach their maximum shelf lives.