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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -