Put it in the refrigerator directly and it will dry out, the right way is
Add olive oil or salad oil, mix well, seal the bowl with plastic wrap, then put it in the refrigerator, it will not dry out the next time you eat it, take it out directly when you eat it, and mix it with the sauce that you want to eat
This is a very good way to store pasta, but you have to know that it will not dry out.