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

Function RM_ReplyWithEmptyString

src/module.cpp:1718–1726  ·  view source on GitHub ↗

Reply with an empty string. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1716 *
1717 * The function always returns REDISMODULE_OK. */
1718int RM_ReplyWithEmptyString(RedisModuleCtx *ctx) {
1719 client *c = moduleGetReplyClient(ctx);
1720 if (c == NULL) return REDISMODULE_OK;
1721 AeLocker locker;
1722 std::unique_lock<fastlock> lock(c->lock);
1723 locker.arm(c);
1724 addReply(c,shared.emptybulk);
1725 return REDISMODULE_OK;
1726}
1727
1728/* Reply with a binary safe string, which should not be escaped or filtered
1729 * taking in input a C buffer pointer and length.

Callers

nothing calls this directly

Calls 3

moduleGetReplyClientFunction · 0.85
addReplyFunction · 0.85
armMethod · 0.80

Tested by

no test coverage detected