The best ways to store coffee would either be to freeze it or kept it in airtight container.
Do not freeze or put in the fridge once opened
To read our article discussing both methods and their respective benefits
The Best Way to Store Coffee to Keep It Fresh