c# - StackExchange Redis SortedSetRangeByScoreWithScoresAsync Get Top n Elements -
i'm using stackexchange.redis api in .net application analytics.
i'm using sorted sets datastore. equivalent method in stackexchange.redis below redis command:
zrevrangebyscore "key:2014052923" +inf -inf withscores limit 0 10
what equivalent way in stackexchange.redis api using sortedsetrangebyscorewithscoresasync function?
sortedsetentry[] values = db.sortedsetrangebyscorewithscores( "key:2014052923", order: order.descending, take: 10);
or *async
twin:
sortedsetentry[] values = await db.sortedsetrangebyscorewithscoresasync( "key:2014052923", order: order.descending, take: 10);
note additional parameters start
, stop
, exclude
, skip
haven't specified because have appropriate values already. in case isn't clear, exclude
related (
prefix on ranges, described on zrangebyscore
.
Comments
Post a Comment