In captivity, an African Pygmy hedgehog usually lives somewhere between three and six years, though well-cared-for animals can reach ten.
Good husbandry — the right temperature, a proper diet and a clean enclosure — is what pushes a hedgehog toward the upper end of that range.