Reply with a bulk string, taking in input a RedisModuleString object. * * The function always returns REDISMODULE_OK. */
| 1703 | * |
| 1704 | * The function always returns REDISMODULE_OK. */ |
| 1705 | int RM_ReplyWithString(RedisModuleCtx *ctx, RedisModuleString *str) { |
| 1706 | client *c = moduleGetReplyClient(ctx); |
| 1707 | if (c == NULL) return REDISMODULE_OK; |
| 1708 | AeLocker locker; |
| 1709 | std::unique_lock<fastlock> lock(c->lock); |
| 1710 | locker.arm(c); |
| 1711 | addReplyBulk(c,str); |
| 1712 | return REDISMODULE_OK; |
| 1713 | } |
| 1714 | |
| 1715 | /* Reply with an empty string. |
| 1716 | * |
nothing calls this directly
no test coverage detected