Pesto can last up to 4 days in the fridge, stored in an airtight container.