You should do your best to store coffee grounds in a place where as little moisture as possible can get to them. If you store ground coffee at room temperature in a dry place, you will have a decent shelf life, and adding a sealed container will also extend that time.