Cover and refrigerate for up to 1 week. Pesto can also be frozen for several months. Classic basil pesto with pine nuts, garlic, and Parmesan that’s ready to toss with pasta in under 30 minutes.