Reply to the client with a null array, simply null in RESP3 * null array in RESP2. * * The function always returns REDISMODULE_OK. */
| 1600 | * |
| 1601 | * The function always returns REDISMODULE_OK. */ |
| 1602 | int 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 | * |
nothing calls this directly
no test coverage detected