Replaced redis set + expire with atomic setex.