diff options
author | Saravjeet 'Aman' Singh <turtleDev@users.noreply.github.com> | 2021-03-16 20:13:53 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 16:43:53 +0200 |
commit | ec34806c1e57ee513df6c3416c3f161f02c14cdf (patch) | |
tree | 935391eaf616b238025efe2067cbf882f2f60f59 /README.md | |
parent | f141329fb78df320bd0a8dc28a0521e78cca8664 (diff) | |
download | redis-ec34806c1e57ee513df6c3416c3f161f02c14cdf.tar.gz |
Update README.md (#3543)
prettify
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -294,19 +294,19 @@ the structure definition. Another important Redis data structure is the one defining a client. In the past it was called `redisClient`, now just `client`. The structure has many fields, here we'll just show the main ones: - - struct client { - int fd; - sds querybuf; - int argc; - robj **argv; - redisDb *db; - int flags; - list *reply; - char buf[PROTO_REPLY_CHUNK_BYTES]; - ... many other fields ... - } - +```c +struct client { + int fd; + sds querybuf; + int argc; + robj **argv; + redisDb *db; + int flags; + list *reply; + char buf[PROTO_REPLY_CHUNK_BYTES]; + // ... many other fields ... +} +``` The client structure defines a *connected client*: * The `fd` field is the client socket file descriptor. |