'Which redis funtionality is similar to SDIFF for SortedSets

Observations : 

1. SDIFF only works with Set. It doesn't support SortedSets.

Query :

  1. In absence of SDIFF, what can be used for Sorted set for similar use-case as SDIFF


Solution 1:[1]

  1. Short answer is no. A Sorted Set has members and scores. Nothing more. However, you can easily store the metadata in another key in Redis using the entityId as part of the key. So, for example, if your entityId was foo you could store that metadata under a key name something like Entity:MetaData:foo. This key could be a simple String, or any data structure in Redis.

  2. Use ZDIFF. It's like SDIFF, but for Sorted Sets.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Guy Royse