Please don’t freeze coffee:
http://www.ncausa.org/About-Coffee/How-to-Store-Coffee
If they are put in a canning jar and then hermetically sealed, NOTHING is getting in or out.
I have jars of stuff on my shelf in the basement that is years old.