What is the conventional way to store objects in a sorted set in redis?

Viewed 1469

What is the most convenient/fast way to implement a sorted set in redis where the values are objects, not just strings.

Should I just store object id's in the sorted set and then query every one of them individually by its key or is there a way that I can store them directly in the sorted set, i.e. must the value be a string?

2 Answers
Related