To maintain their quality and prevent spoilage, store dried beans, lentils, and peas in a cool, dry place in airtight containers. Avoid exposure to moisture, heat, and sunlight, as these can affect their texture and taste.