dried beans and lentils can last indefinitely and canned beans can last years if stored in a cool, dry place.