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

Function RM_ReplyWithLongLong

src/module.cpp:1523–1531  ·  view source on GitHub ↗

Send an integer reply to the client, with the specified long long value. * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1521/* Send an integer reply to the client, with the specified long long value.
1522 * The function always returns REDISMODULE_OK. */
1523int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) {
1524 client *c = moduleGetReplyClient(ctx);
1525 if (c == NULL) return REDISMODULE_OK;
1526 AeLocker locker;
1527 std::unique_lock<fastlock> lock(c->lock);
1528 locker.arm(c);
1529 addReplyLongLong(c,ll);
1530 return REDISMODULE_OK;
1531}
1532
1533/* Reply with the error 'err'.
1534 *

Callers

nothing calls this directly

Calls 3

moduleGetReplyClientFunction · 0.85
addReplyLongLongFunction · 0.85
armMethod · 0.80

Tested by

no test coverage detected