Coffee is ideally stored in aroma sealed bags in a cool and dry place.
We at Reinhart-coffee use a special package with a valve which allows degassing. The valve is designed in such a way that air and CO2 are released and no oxygen is able to infiltrate. Oxygen would lead to a loss in flavour.
Once the package is opened, the coffee should be kept in the fridge and consumed within three to four weeks.