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". */
| 963 | * RESP2 protocol, however for RESP3 the reply will always be just the |
| 964 | * Null type "_\r\n". */ |
| 965 | void addReplyNullArray(client *c) |
| 966 | { |
| 967 | if (c->resp == 2) { |
| 968 | addReplyProto(c,"*-1\r\n",5); |
| 969 | } else { |
| 970 | addReplyProto(c,"_\r\n",3); |
| 971 | } |
| 972 | } |
| 973 | |
| 974 | /* Create the length prefix of a bulk reply, example: $2234 */ |
| 975 | void addReplyBulkLen(client *c, robj_roptr obj) { |
no test coverage detected