Corey fish have a usual life span of roughly four to six years. This, of course, is dependent upon fish husbandry, specific species, and several different variables dependent upon genetics and aquarium condition.
Cory catfish usually live about 5 years. They are a good community tank fish and are very hardy. For your cory to live a long life, make sure to maintain the water condition and temperature, and keep up with water changes.