Send an integer reply to the client, with the specified long long value. * The function always returns REDISMODULE_OK. */
| 1521 | /* Send an integer reply to the client, with the specified long long value. |
| 1522 | * The function always returns REDISMODULE_OK. */ |
| 1523 | int RM_ReplyWithLongLong(RedisModuleCtx *ctx, long long ll) { |
| 1524 | client *c = moduleGetReplyClient(ctx); |
| 1525 | if (c == NULL) return REDISMODULE_OK; |
| 1526 | AeLocker locker; |
| 1527 | std::unique_lock<fastlock> lock(c->lock); |
| 1528 | locker.arm(c); |
| 1529 | addReplyLongLong(c,ll); |
| 1530 | return REDISMODULE_OK; |
| 1531 | } |
| 1532 | |
| 1533 | /* Reply with the error 'err'. |
| 1534 | * |
nothing calls this directly
no test coverage detected