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

Function RM_ReplyWithVerbatimString

app/redis-6.2.6/src/module.c:1677–1682  ·  view source on GitHub ↗

Reply with a binary safe string, which should not be escaped or filtered * taking in input a C buffer pointer and length. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1675 *
1676 * The function always returns REDISMODULE_OK. */
1677int RM_ReplyWithVerbatimString(RedisModuleCtx *ctx, const char *buf, size_t len) {
1678 client *c = moduleGetReplyClient(ctx);
1679 if (c == NULL) return REDISMODULE_OK;
1680 addReplyVerbatim(c, buf, len, "txt");
1681 return REDISMODULE_OK;
1682}
1683
1684/* Reply to the client with a NULL.
1685 *

Callers

nothing calls this directly

Calls 2

moduleGetReplyClientFunction · 0.85
addReplyVerbatimFunction · 0.85

Tested by

no test coverage detected