Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
ec34806c
"vscode:/vscode.git/clone" did not exist on "8d67211450ef71c1eac505a44958998d852cbfda"
Unverified
Commit
ec34806c
authored
Mar 16, 2021
by
Saravjeet 'Aman' Singh
Committed by
GitHub
Mar 16, 2021
Browse files
Update README.md (#3543)
prettify
parent
f141329f
Changes
1
Show whitespace changes
Inline
Side-by-side
README.md
View file @
ec34806c
...
@@ -294,8 +294,8 @@ the structure definition.
...
@@ -294,8 +294,8 @@ the structure definition.
Another important Redis data structure is the one defining a client.
Another important Redis data structure is the one defining a client.
In the past it was called
`redisClient`
, now just
`client`
. The structure
In the past it was called
`redisClient`
, now just
`client`
. The structure
has many fields, here we'll just show the main ones:
has many fields, here we'll just show the main ones:
```
c
struct client {
struct
client
{
int
fd
;
int
fd
;
sds
querybuf
;
sds
querybuf
;
int
argc
;
int
argc
;
...
@@ -304,9 +304,9 @@ has many fields, here we'll just show the main ones:
...
@@ -304,9 +304,9 @@ has many fields, here we'll just show the main ones:
int
flags
;
int
flags
;
list
*
reply
;
list
*
reply
;
char
buf
[
PROTO_REPLY_CHUNK_BYTES
];
char
buf
[
PROTO_REPLY_CHUNK_BYTES
];
... many other fields ...
//
... many other fields ...
}
}
```
The client structure defines a
*connected client*
:
The client structure defines a
*connected client*
:
*
The
`fd`
field is the client socket file descriptor.
*
The
`fd`
field is the client socket file descriptor.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment