replace ids form redis set to hashes