I am using redis to store a list of items in a set. I add a very similar list to the set periodically, and obviously, the sorted set only adds new items if they don’t already exist. Is there a way to get that list of new items that were just added? The ones that didn’t already exist in the set?
Danke schoen.
ZADDcommand, if called with one score/member pair, returns 1 if member was new and 0 if it already existed. You can use this. Add elements one by one and check return values.