Beans last several years and longer if properly packaged and stored. Wheat lasts darn near forever, properly pack and treat to kill bug eggs. To treat your wheat, put a mylar bag in a 5 gallon bucket or get a food grade 5 gallon bucket. Fill your container about 1/4 of the way and put a chunk of dry ice in the container. Fill the container the rest of the way and put the lid on, but do not seal it tight. Wait about 6 hours then seal your container. The gases from the dry ice will kill the bug eggs so they will not hatch and eat your stored food.
JK
JK