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

Function RM_DictCompare

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

Like RedisModule_DictCompareC but gets the key to compare with the current * iterator key as a RedisModuleString. */

Source from the content-addressed store, hash-verified

6884/* Like RedisModule_DictCompareC but gets the key to compare with the current
6885 * iterator key as a RedisModuleString. */
6886int RM_DictCompare(RedisModuleDictIter *di, const char *op, RedisModuleString *key) {
6887 if (raxEOF(&di->ri)) return REDISMODULE_ERR;
6888 int res = raxCompare(&di->ri,op,key->ptr,sdslen(key->ptr));
6889 return res ? REDISMODULE_OK : REDISMODULE_ERR;
6890}
6891
6892
6893

Callers

nothing calls this directly

Calls 3

raxEOFFunction · 0.85
raxCompareFunction · 0.85
sdslenFunction · 0.85

Tested by

no test coverage detected