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

Function moduleZsetAddFlagsToCoreFlags

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

Conversion from/to public flags of the Modules API and our private flags, * so that we have everything decoupled. */

Source from the content-addressed store, hash-verified

2600/* Conversion from/to public flags of the Modules API and our private flags,
2601 * so that we have everything decoupled. */
2602int moduleZsetAddFlagsToCoreFlags(int flags) {
2603 int retflags = 0;
2604 if (flags & REDISMODULE_ZADD_XX) retflags |= ZADD_IN_XX;
2605 if (flags & REDISMODULE_ZADD_NX) retflags |= ZADD_IN_NX;
2606 if (flags & REDISMODULE_ZADD_GT) retflags |= ZADD_IN_GT;
2607 if (flags & REDISMODULE_ZADD_LT) retflags |= ZADD_IN_LT;
2608 return retflags;
2609}
2610
2611/* See previous function comment. */
2612int moduleZsetAddFlagsFromCoreFlags(int flags) {

Callers 2

RM_ZsetAddFunction · 0.85
RM_ZsetIncrbyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected