Keep your lentils in a cool, dry place, and they'll stay good for up to a year, sometimes even longer. No need for fancy containers; a simple airtight container or a sealed bag will do the trick. Cooked lentils, however, should be refrigerated and used within a week for the best quality and safety.