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

Function moduleZsetAddFlagsFromCoreFlags

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

See previous function comment. */

Source from the content-addressed store, hash-verified

2610
2611/* See previous function comment. */
2612int moduleZsetAddFlagsFromCoreFlags(int flags) {
2613 int retflags = 0;
2614 if (flags & ZADD_OUT_ADDED) retflags |= REDISMODULE_ZADD_ADDED;
2615 if (flags & ZADD_OUT_UPDATED) retflags |= REDISMODULE_ZADD_UPDATED;
2616 if (flags & ZADD_OUT_NOP) retflags |= REDISMODULE_ZADD_NOP;
2617 return retflags;
2618}
2619
2620/* Add a new element into a sorted set, with the specified 'score'.
2621 * If the element already exists, the score is updated.

Callers 2

RM_ZsetAddFunction · 0.85
RM_ZsetIncrbyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected