About one hour after cooking. After that, any food can become tainted and needs to be refrigerated to keep the bacteria in control. If it is uncooked, it needs to remain refrigerated-but will only remain fresh in this state for about 2 or 3 days at most.