I keep them in their original bag if it is a solid color and light cannot pass through... roll top sown squeezing all of the air out of the bag... seal and place in cool dry place... AKA one of my cupboards... I use coffee quickly so this setup works great... The problem with some air tight containers/canisters is that you are trapping air within the container... This air will continue the oxidation process inside the container...
If you need to keep it longer you can freeze it but use the same basic principles... Air tight, solid container... you still don't want it exposed to light... I have been experimenting with freezering coffees and I find that a month in the freezer acts similar to a week in the cupboard... So far it seems like a solid ratio of 1month:1week for freezer:cupboard...
If you do freezer your coffee, pre-weigh single doses for cups or pots so you don't disturb all of it each time you go in for some as opening the bag will make temperature and humidity within the bag fluctuate... Also no need to defrost

... The 30 seconds it will take you to go from the freezer to grinder is more than enough time...
Cheers!