MCPcopy Create free account
hub / github.com/F-Stack/f-stack / RM_ZsetFirstInScoreRange

Function RM_ZsetFirstInScoreRange

app/redis-6.2.6/src/module.c:2818–2820  ·  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

2816 * where the min and max value are exclusive (not included) instead of
2817 * inclusive. */
2818int RM_ZsetFirstInScoreRange(RedisModuleKey *key, double min, double max, int minex, int maxex) {
2819 return zsetInitScoreRange(key,min,max,minex,maxex,1);
2820}
2821
2822/* Exactly like RedisModule_ZsetFirstInScoreRange() but the last element of
2823 * 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