A null array is a concept that no longer exists in RESP3. However * RESP2 had it, so API-wise we have this call, that will emit the correct * RESP2 protocol, however for RESP3 the reply will always be just the * Null type "_\r\n". */
| 804 | * RESP2 protocol, however for RESP3 the reply will always be just the |
| 805 | * Null type "_\r\n". */ |
| 806 | void addReplyNullArray(client *c) { |
| 807 | if (c->resp == 2) { |
| 808 | addReplyProto(c,"*-1\r\n",5); |
| 809 | } else { |
| 810 | addReplyProto(c,"_\r\n",3); |
| 811 | } |
| 812 | } |
| 813 | |
| 814 | /* Create the length prefix of a bulk reply, example: $2234 */ |
| 815 | void addReplyBulkLen(client *c, robj *obj) { |
no test coverage detected