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

Function moduleZsetAddFlagsFromCoreFlags

src/module.cpp:2700–2706  ·  view source on GitHub ↗

See previous function comment. */

Source from the content-addressed store, hash-verified

2698
2699/* See previous function comment. */
2700int moduleZsetAddFlagsFromCoreFlags(int flags) {
2701 int retflags = 0;
2702 if (flags & ZADD_OUT_ADDED) retflags |= REDISMODULE_ZADD_ADDED;
2703 if (flags & ZADD_OUT_UPDATED) retflags |= REDISMODULE_ZADD_UPDATED;
2704 if (flags & ZADD_OUT_NOP) retflags |= REDISMODULE_ZADD_NOP;
2705 return retflags;
2706}
2707
2708/* Add a new element into a sorted set, with the specified 'score'.
2709 * 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