H.A.F.
a.k.a. Rusty Nails
Or glass or ceramic - which would not fit that aplication. Both would work great for storing weed, Mylar = metal foil - already in use.the only reliable barrier would be a metal foil.
Ceramic usually doesn't have air-tight going on, but it's would also probably be good for dry/cure but not for storage.
Glass is perfect but lets in light. Amber glass is my go-to. I have some amber Mason jars, but also some generic smaller size jars.
For longer term storage I vacuum seal the mason jars.