Rice : When stored in a cool, dry place inside an airtight container, white rice can keep indefinitely. Just watch for bugs or other contaminants (and if you find any, toss the whole container). Brown rice won't keep for as long, and will look oily and give off a rancid odor if spoiled.   From Food Network Kitchen

Source