This article is from the Coffee and Caffeine FAQ, by Alex Lopez-Ortiz with numerous contributions by others.
One should always store coffee beans in a glass, air tight container.
Air is coffee's principle enemy. Glass is best because it doesn't
retain the odors of the beans or the oils, which could contaminate
future beans stored in the same container. However, if you use glass,
make sure the container is not exposed to light, as sunlight is
believed to reduce freshness.
For consumption within:
1 week
room temperature is fine
2 weeks to a month
refrigerate
freeze them
This prevents the chemical reactions that produce stale beans and
lifeless coffee.
 
Continue to: