They do have gas problem every year with their snow blower, it's systematic, they just don't put enough care about it.
Is there anything about the generator that could have helped? Is there's fuel stabilized that can last a decade? We were pretty happy to see it start such "easily" and be able to plug our essential stuff on it without having to go buy gas.
It's pretty common for home generators to be natural gas. If gasoline, maybe keep the gas outside of it and rotate it every 3 months. I.e. have a 10 gallon can of it you buy in Jan. In april if you haven't used it yet, use it to fill up your car, and buy a new 10 gallons in a can. That way your gas is at most 3 months old, at the cost of having to lug around a can 4x a year. You could likely reduce to a 6 month rotation and not have much difference either.
If it's a portable generator, either put 100LL in it or (even better) run it entirely dry (to shut down) when done using it.
To your stable fuel question, for a permanently installed unit in a residence, I think it's incredibly hard to beat natural gas as a fuel supply for it.
https://www.livescience.com/58117-does-gasoline-go-bad.html
Ask anyone who has ever left untreated gas in their lawn mower over winter. It takes a drain and some work to get the mower started in the summer. Throw in 1oz of fuel stabilizer, and all is well.
(So the obvious answer is to put fuel stabilizer if you are going to store gas for > 6 months. It only costs a few cents per gallon)