A man has been sentenced to serve at least 25 years in the death of a worker at a Cary Dollar Tree discount store.