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

Function RM_ZsetFirstInScoreRange

src/module.cpp:2906–2908  ·  view source on GitHub ↗

Setup a sorted set iterator seeking the first element in the specified * range. Returns REDISMODULE_OK if the iterator was correctly initialized * otherwise REDISMODULE_ERR is returned in the following conditions: * * 1. The value stored at key is not a sorted set or the key is empty. * * The range is specified according to the two double values 'min' and 'max'. * Both can be infinite using

Source from the content-addressed store, hash-verified

2904 * where the min and max value are exclusive (not included) instead of
2905 * inclusive. */
2906int RM_ZsetFirstInScoreRange(RedisModuleKey *key, double min, double max, int minex, int maxex) {
2907 return zsetInitScoreRange(key,min,max,minex,maxex,1);
2908}
2909
2910/* Exactly like RedisModule_ZsetFirstInScoreRange() but the last element of
2911 * the range is selected for the start of the iteration instead. */

Callers

nothing calls this directly

Calls 1

zsetInitScoreRangeFunction · 0.85

Tested by

no test coverage detected