When they’re not in use, coffee beans should be stored in an airtight container at a cool room temperature. For best results, store them between 60 and 70 degrees Fahrenheit. This will make it harder for the taste and aroma to dissipate and it will help the beans stay fresher for longer periods of time.
Beans can last up to two weeks if kept in a sealed plastic bag or glass jar with a proper lid—this is also ideal when ground coffee is used because it helps against oxidation that robs the taste of its flavor. If refrigerated (yes, iced!), then keep them in their original or another airtight container that’s placed inside another airtight container.
Check all about here: https://www.eraofwe.com/coffee-lab/articles/the-best-airtight-coffee