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

Function RM_ReplyWithEmptyArray

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

Reply to the client with an empty array. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1576 *
1577 * The function always returns REDISMODULE_OK. */
1578int RM_ReplyWithEmptyArray(RedisModuleCtx *ctx) {
1579 client *c = moduleGetReplyClient(ctx);
1580 if (c == NULL) return REDISMODULE_OK;
1581 addReply(c,shared.emptyarray);
1582 return REDISMODULE_OK;
1583}
1584
1585/* When RedisModule_ReplyWithArray() is used with the argument
1586 * REDISMODULE_POSTPONED_ARRAY_LEN, because we don't know beforehand the number

Callers

nothing calls this directly

Calls 2

moduleGetReplyClientFunction · 0.85
addReplyFunction · 0.85

Tested by

no test coverage detected