Map redis ids to integers internally.