Redis PFADD to check a exists-in-set query

Viewed 1387

I have a requirement to process multiple records from a queue. But due to some external issues the items may sporadically occur multiple times. I need to process items only once

What I planned to use is PFADD into redis every record ( as a md5sum) and then see if that returns success. If that shows no increment then the record is a duplicate else process the record.

This seems pretty straightforward , but I am getting too many false positives while using PFADD

Is there a better way to do this ?

2 Answers
Related