Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
hiredis
Commits
4b530833
Commit
4b530833
authored
Nov 01, 2010
by
Pieter Noordhuis
Browse files
Add comment on return value of redisGetReply
parent
728de4a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
4b530833
...
...
@@ -148,7 +148,12 @@ to the `redisCommand` family, apart from not returning a reply:
void redisAppendCommandArgv(redisContext *c, int argc, const char **argv, const size_t *argvlen);
After calling either function one or more times,
`redisGetReply`
can be used to receive the
subsequent replies:
subsequent replies. The return value for this function is either
`REDIS_OK`
or
`REDIS_ERR`
, where
the latter means an error occurred while reading a reply. Just as with the other commands,
the
`error`
field in the context can be used to find out what the cause of this error is.
The following examples shows a simple pipeline (resulting in only a single call to
`write(2)`
and
a single call to
`write(2)`
):
redisReply *reply;
redisAppendCommand(context,"SET foo bar");
...
...
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