The best way to store cannabis is vacuum sealed, packed in nitrogen, and refrigerated. This is the same method used for hops.
If you are reluctant to go spend hundreds of dollars on mylar vacuuming gear and nitrogen, you can vacuum seal and use oxygen absorbing packets to eat up the oxygen left...