Skip to content

Commit

Permalink
[automated site update]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 4, 2024
1 parent cee6e54 commit e58ca17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions apidoc/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,8 @@ <h2><a class="anchor" id="autotoc_md29"></a>
<div class="ttc" id="aredisx-client_8c_html_abc855133c2af4f5d929a05292aa634d1"><div class="ttname"><a href="redisx-client_8c.html#abc855133c2af4f5d929a05292aa634d1">redisxReadReplyAsync</a></div><div class="ttdeci">RESP * redisxReadReplyAsync(RedisClient *cl)</div><div class="ttdef"><b>Definition</b> redisx-client.c:650</div></div>
<div class="ttc" id="aredisx_8c_html_a2d3ffb89129ab04483e3966835a5ff71"><div class="ttname"><a href="redisx_8c.html#a2d3ffb89129ab04483e3966835a5ff71">redisxCheckRESP</a></div><div class="ttdeci">int redisxCheckRESP(const RESP *resp, char expectedType, int expectedSize)</div><div class="ttdef"><b>Definition</b> redisx.c:463</div></div>
</div><!-- fragment --><p>In some cases you may be OK with just firing off <a class="el" href="structRedis.html" title="Structure that represents a Redis database instance, with one or more RedisClient connections.">Redis</a> commands, without necessarily caring about responses. Rather than ignoring the replies with <code><a class="el" href="redisx-client_8c.html#ac0f30d62044638a2ead07583ad723fdf">redisxIgnoreReplyAsync()</a></code> you might call <code>redisxSkiReplyAsync()</code> instead <b>before</b> <code><a class="el" href="redisx-client_8c.html#afc7b28288c07baf0b3c8fdc9d8ddf263">redisxSendRequestAsync()</a></code> to instruct <a class="el" href="structRedis.html" title="Structure that represents a Redis database instance, with one or more RedisClient connections.">Redis</a> to not even bother about sending a response to your request (it saves time and network bandwidth!):</p>
<div class="fragment"><div class="line">...</div>
<div class="line"><span class="comment">// We don&#39;t want to receive a response to our command... </span></div>
<div class="line">int status = <a class="code hl_function" href="redisx-client_8c.html#a44c5d0bd24f5a4f2f131218f14c9c599">redisxSkipReplyAsync</a>(cl);</div>
<div class="fragment"><div class="line"><span class="comment">// We don&#39;t want to receive a response to our next command... </span></div>
<div class="line"><span class="keywordtype">int</span> status = <a class="code hl_function" href="redisx-client_8c.html#a44c5d0bd24f5a4f2f131218f14c9c599">redisxSkipReplyAsync</a>(cl);</div>
<div class="line"> </div>
<div class="line"><span class="keywordflow">if</span> (status == X_SUCCESS) {</div>
<div class="line"> <span class="comment">// Now send the request...</span></div>
Expand Down
3 changes: 1 addition & 2 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,7 @@ than ignoring the replies with `redisxIgnoreReplyAsync()` you might call `redisx
time and network bandwidth!):
```c
...
// We don't want to receive a response to our command...
// We don't want to receive a response to our next command...
int status = redisxSkipReplyAsync(cl);
if (status == X_SUCCESS) {
Expand Down

0 comments on commit e58ca17

Please sign in to comment.