Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In part 2, correct me if I'm wrong, but isn't the member you're adding for jobs a key? Isn't the code to see if it's already a member unnecessary? It shouldn't add duplicates since the member's value doesn't change (it's a key). Granted, it's unnecessary to re-add the key to the jobs sorted set as the code does, but the explanation doesn't seem right. On the other hand, you could call zadd again to change the score.


uh..ya, ur right. I'll fix it


I see you fixed it. Cool. By the way, I've been using Redis extensively for a while and your tutorial is quite good. Congrats!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: