Different seeds have different storage life.
Most of them will keep for a long time as long as they are protected from light and air and mice.
Mason jar in the fridge will keep them a very long time.
Fun fact:
There was some grain that was found with Egyptian mummies {hundreds, if not thousands of years old} that was sprouted and [IIRC] grown.
Yes, that's what I do. Got the tip from a book written by a former owner of a seed co.. Add silica crystals (a dessicant) to the jars before closing them. You can get these crystals at craft stores as part of flower drying kits.