Closed eaddingtonwhite closed 1 month ago
Currently for sortedSetGetRank we only support fetching in Ascending order.
sortedSetGetRank
Ascending
await momento.sortedSetGetRank('my-cache', 'my-sorted-set', 'my-element');
This PR adds optional call options to sortedSetGetRank to sort the sorted set by Descending or Ascending order when determining the rank of the passed element. So can call like this now:
Descending
await momento.sortedSetGetRank('my-cache', 'my-sorted-set', 'my-element', { order: SortedSetOrder.Descending });
Currently for
sortedSetGetRank
we only support fetching inAscending
order.This PR adds optional call options to
sortedSetGetRank
to sort the sorted set byDescending
orAscending
order when determining the rank of the passed element. So can call like this now: