For no more than 2-3 hours. Pastry cream needs to remain chilled in order to hold its structure and freshness.