Observations :
1. SDIFF only works with Set. It doesn't support SortedSets.
Query :
- In absence of SDIFF, what can be used for Sorted set for similar use-case as SDIFF
Observations :
1. SDIFF only works with Set. It doesn't support SortedSets.
Query :
Copyright © 2021 Jogjafile Inc.
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 yourentityId
wasfoo
you could store that metadata under a key name something likeEntity:MetaData:foo
. This key could be a simple String, or any data structure in Redis.Use ZDIFF. It's like SDIFF, but for Sorted Sets.