what's the lifespan of a battery in classic cartridges (specifically sega)? Many games have batteries for saving but how long do they last? Should I get sealed/barely used carts as (besides their condition) their batteries still save- Or DO they?

Months ago I got a Genny golf game used & it still had the owner's names & stats on it...from years ago!