To Freeze: Place pesto into a clean ice cube tray and cover with tightly cover with a layer of plastic wrap and foil. Freeze for up to three months. Thaw on the counter or the fridge or mix ice cubes right into hot pasta or tomato sauce to melt on their own.