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

Function RM_ReplyWithString

src/module.cpp:1705–1713  ·  view source on GitHub ↗

Reply with a bulk string, taking in input a RedisModuleString object. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1703 *
1704 * The function always returns REDISMODULE_OK. */
1705int RM_ReplyWithString(RedisModuleCtx *ctx, RedisModuleString *str) {
1706 client *c = moduleGetReplyClient(ctx);
1707 if (c == NULL) return REDISMODULE_OK;
1708 AeLocker locker;
1709 std::unique_lock<fastlock> lock(c->lock);
1710 locker.arm(c);
1711 addReplyBulk(c,str);
1712 return REDISMODULE_OK;
1713}
1714
1715/* Reply with an empty string.
1716 *

Callers

nothing calls this directly

Calls 3

moduleGetReplyClientFunction · 0.85
addReplyBulkFunction · 0.85
armMethod · 0.80

Tested by

no test coverage detected