Keep beans in an airtight bag or tin, away from heat, light, and moisture. Don’t keep coffee in the fridge. If you won’t finish it within a month, freeze in small, sealed portions. Thaw a portion while it’s still sealed so it doesn’t pick up moisture.