I usually just buy what I will use in a week. If there is more I try and put it in an airtight container and put it somewhere light is not...
I don't use the freezer becuase, from what I read, moisture is an enemy of coffee and the freezing and un-freezing makes the bean taste bad. Freezing is better than putting it in the fridge though...
Just my random thoughts. I know there are much more experienced coffee conniseurs around here who could give you a better explanation than I... 🙂