Lifespan of Catalytic Convertors

I would think their longevity would be a function of miles, not years...I know some people here have experienced their cats going bad but I am unable to locate these threads. Anyone want to chime in on how many miles before cats go bad?