README style
This commit is contained in:
parent
e13674dd4e
commit
c7ab28d2d0
18
README.md
18
README.md
@ -78,25 +78,31 @@ The standard replies that `redisCommand` are of the type `redisReply`. The
|
|||||||
`type` field in the `redisReply` should be used to test what kind of reply
|
`type` field in the `redisReply` should be used to test what kind of reply
|
||||||
was received:
|
was received:
|
||||||
|
|
||||||
* `REDIS_REPLY_STATUS`:
|
* **`REDIS_REPLY_STATUS`**:
|
||||||
|
|
||||||
The command replied with a status reply. The status string can be accessed using `reply->str`.
|
The command replied with a status reply. The status string can be accessed using `reply->str`.
|
||||||
The length of this string can be accessed using `reply->len`.
|
The length of this string can be accessed using `reply->len`.
|
||||||
|
|
||||||
* `REDIS_REPLY_ERROR`:
|
* **`REDIS_REPLY_ERROR`**:
|
||||||
|
|
||||||
The command replied with an error. The error string can be accessed identical to `REDIS_REPLY_STATUS`.
|
The command replied with an error. The error string can be accessed identical to `REDIS_REPLY_STATUS`.
|
||||||
|
|
||||||
* `REDIS_REPLY_INTEGER`:
|
* **`REDIS_REPLY_INTEGER`**:
|
||||||
|
|
||||||
The command replied with an integer. The integer value can be accessed using the
|
The command replied with an integer. The integer value can be accessed using the
|
||||||
`reply->integer` field of type `long long`.
|
`reply->integer` field of type `long long`.
|
||||||
|
|
||||||
* `REDIS_REPLY_NIL`:
|
* **`REDIS_REPLY_NIL`**:
|
||||||
|
|
||||||
The command replied with a **nil** object. There is no data to access.
|
The command replied with a **nil** object. There is no data to access.
|
||||||
|
|
||||||
* `REDIS_REPLY_STRING`:
|
* **`REDIS_REPLY_STRING`**:
|
||||||
|
|
||||||
A bulk (string) reply. The value of the reply can be accessed using `reply->str`.
|
A bulk (string) reply. The value of the reply can be accessed using `reply->str`.
|
||||||
The length of this string can be accessed using `reply->len`.
|
The length of this string can be accessed using `reply->len`.
|
||||||
|
|
||||||
* `REDIS_REPLY_ARRAY`:
|
* **`REDIS_REPLY_ARRAY`**:
|
||||||
|
|
||||||
A multi bulk reply. The number of elements in the multi bulk reply is stored in
|
A multi bulk reply. The number of elements in the multi bulk reply is stored in
|
||||||
`reply->elements`. Every element in the multi bulk reply is a `redisReply` object as well
|
`reply->elements`. Every element in the multi bulk reply is a `redisReply` object as well
|
||||||
and can be accessed via `reply->elements[..index..]`.
|
and can be accessed via `reply->elements[..index..]`.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user