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

Function zslLexValueLteMax

src/t_zset.cpp:643–647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

641}
642
643int zslLexValueLteMax(sds value, zlexrangespec *spec) {
644 return spec->maxex ?
645 (sdscmplex(value,spec->max) < 0) :
646 (sdscmplex(value,spec->max) <= 0);
647}
648
649/* Returns if there is a part of the zset is in the lex range. */
650int zslIsInLexRange(zskiplist *zsl, zlexrangespec *range) {

Callers 7

zslDeleteRangeByLexFunction · 0.85
zslIsInLexRangeFunction · 0.85
zslFirstInLexRangeFunction · 0.85
zslLastInLexRangeFunction · 0.85
zzlLexValueLteMaxFunction · 0.85
RM_ZsetRangeNextFunction · 0.85

Calls 1

sdscmplexFunction · 0.85

Tested by

no test coverage detected