MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / RM_ZsetLastInScoreRange

Function RM_ZsetLastInScoreRange

src/module.cpp:2912–2914  ·  view source on GitHub ↗

Exactly like RedisModule_ZsetFirstInScoreRange() but the last element of * the range is selected for the start of the iteration instead. */

Source from the content-addressed store, hash-verified

2910/* Exactly like RedisModule_ZsetFirstInScoreRange() but the last element of
2911 * the range is selected for the start of the iteration instead. */
2912int RM_ZsetLastInScoreRange(RedisModuleKey *key, double min, double max, int minex, int maxex) {
2913 return zsetInitScoreRange(key,min,max,minex,maxex,0);
2914}
2915
2916/* Helper function for RM_ZsetFirstInLexRange() and RM_ZsetLastInLexRange().
2917 * Setup the sorted set iteration according to the specified lexicographical

Callers

nothing calls this directly

Calls 1

zsetInitScoreRangeFunction · 0.85

Tested by

no test coverage detected