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

Function RM_ReplyWithNullArray

src/module.cpp:1602–1610  ·  view source on GitHub ↗

Reply to the client with a null array, simply null in RESP3 * null array in RESP2. * * The function always returns REDISMODULE_OK. */

Source from the content-addressed store, hash-verified

1600 *
1601 * The function always returns REDISMODULE_OK. */
1602int RM_ReplyWithNullArray(RedisModuleCtx *ctx) {
1603 client *c = moduleGetReplyClient(ctx);
1604 if (c == NULL) return REDISMODULE_OK;
1605 AeLocker locker;
1606 std::unique_lock<fastlock> lock(c->lock);
1607 locker.arm(c);
1608 addReplyNullArray(c);
1609 return REDISMODULE_OK;
1610}
1611
1612/* Reply to the client with an empty array.
1613 *

Callers

nothing calls this directly

Calls 3

moduleGetReplyClientFunction · 0.85
addReplyNullArrayFunction · 0.85
armMethod · 0.80

Tested by

no test coverage detected