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

Function RM_ReplyWithString

app/redis-6.2.6/src/module.c:1656–1661  ·  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

1654 *
1655 * The function always returns REDISMODULE_OK. */
1656int RM_ReplyWithString(RedisModuleCtx *ctx, RedisModuleString *str) {
1657 client *c = moduleGetReplyClient(ctx);
1658 if (c == NULL) return REDISMODULE_OK;
1659 addReplyBulk(c,str);
1660 return REDISMODULE_OK;
1661}
1662
1663/* Reply with an empty string.
1664 *

Callers

nothing calls this directly

Calls 2

moduleGetReplyClientFunction · 0.85
addReplyBulkFunction · 0.85

Tested by

no test coverage detected