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

Function RM_ZsetFirstInLexRange

app/redis-6.2.6/src/module.c:2880–2882  ·  view source on GitHub ↗

Setup a sorted set iterator seeking the first element in the specified * lexicographical 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. * 2. The lexicographical range 'min' and 'max' format is invalid. * * 'min' and 'max' sh

Source from the content-addressed store, hash-verified

2878 * The function does not take ownership of the objects, so they can be released
2879 * ASAP after the iterator is setup. */
2880int RM_ZsetFirstInLexRange(RedisModuleKey *key, RedisModuleString *min, RedisModuleString *max) {
2881 return zsetInitLexRange(key,min,max,1);
2882}
2883
2884/* Exactly like RedisModule_ZsetFirstInLexRange() but the last element of
2885 * the range is selected for the start of the iteration instead. */

Callers

nothing calls this directly

Calls 1

zsetInitLexRangeFunction · 0.85

Tested by

no test coverage detected