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

Function RM_ZsetFirstInLexRange

src/module.cpp:2968–2970  ·  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

2966 * The function does not take ownership of the objects, so they can be released
2967 * ASAP after the iterator is setup. */
2968int RM_ZsetFirstInLexRange(RedisModuleKey *key, RedisModuleString *min, RedisModuleString *max) {
2969 return zsetInitLexRange(key,min,max,1);
2970}
2971
2972/* Exactly like RedisModule_ZsetFirstInLexRange() but the last element of
2973 * 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