12
Is there a way to compute the difference between two sorted sets (zset) or do I have to use simple sets for this?
Problem:
- Set F contains a list of sorted id's (sorted set, full list)
- Set K contains a list of id's (simple set, subset of F)
I want to retrieve every entry in F, in order, that's not in K.
Is this possible using Redis alone or do I have to do the computation on the application? If yes, what is the best way?
EDIT: SDIFF does not suit this purpose as it doesn't allow sorted sets.