Store the pesto in an airtight container for up to one week. When storing the fridge, add a drizzle of olive to the top to seal the pesto from oxygen. Pesto also freezes really well. You can store up to 3 months without losing flavour. After 3 months, you can still eat it, but the flavour may be affected.