I want to use Redis with java Redisson library. I have a task to store items in a sorted order, based on some item's field. There are three main constraints:
Is it ok to use Redissons ScoredSortedSet.rank method with such constraints, or it is not suitable and there is a better solution?
Yes everything is possible with ScoredSortedSet (it is mapped to Redis Sorted Set), but I need to convert my field to score so that ScoredSortedSet works. Nikita suggests to use RSortedSet or PriorityQueue, however they do not have 'rank' command, which I needed.