Peas,bean, and any kind of grain will last a year or longer if you put them in ziplock bags and set back in a dark pantry or on a shelf away from moisture, The best things for spices I've found are the ''merry go round'' spice holders with individual glass bottles.You can put spices in them,label, and set the holder where it will be away from the heat of the stove, they will also last a year or so if the lids are kept tight. Flour can go in the freezer indefinetly..