Pesto generally lasts 4-5 days in the refrigerator when stored in an appropriate air tight container.