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

Function RM_ZsetLastInLexRange

src/module.cpp:2974–2976  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

2972/* Exactly like RedisModule_ZsetFirstInLexRange() but the last element of
2973 * the range is selected for the start of the iteration instead. */
2974int RM_ZsetLastInLexRange(RedisModuleKey *key, RedisModuleString *min, RedisModuleString *max) {
2975 return zsetInitLexRange(key,min,max,0);
2976}
2977
2978/* Return the current sorted set element of an active sorted set iterator
2979 * or NULL if the range specified in the iterator does not include any

Callers

nothing calls this directly

Calls 1

zsetInitLexRangeFunction · 0.85

Tested by

no test coverage detected