Cannabis degrades due to contact with oxygen, so one unique way to store cannabis is with nitrogen flushing. This packaging technique has been used for decades in the food industry. Oxygen is flushed out of the storage container and replaced with nitrogen. This is, however, a rather extreme method. For the average consumer, any airtight, sealable container (mason jars are popular) should suffice, as long as it is kept out of light and heat.
So how can I store my cannabis to stop it going bad? There is currently no perfect way to preserve cannabis.