My license expires after just 6 years I believe, but it can be renewed without retesting or anything, so unfortunately expiry doesn't solve the problem (at least in the US).
In my old state they had a machine you looked into. I had a harder time with that one, I'm guessing due to my mild astigmatism. But no chance to memorize it, because you don't see it until your face is in the machine; and all the lines were the same size, so you could have gotten any of them.