Skip to content

Commit

Permalink
fixup: improved example comments
Browse files Browse the repository at this point in the history
  • Loading branch information
bjosv committed Mar 18, 2024
1 parent a651ab7 commit d3a2a5f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/src/clientside_caching_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void eventCallback(const redisClusterContext *cc, int event, void *privdata) {
}

/* Message callback for 'SET' commands. Issues a 'GET' command and a reply is
expected as a call to 'getCallback()' */
expected as a call to 'getCallback1()' */
void setCallback(redisClusterAsyncContext *acc, void *r, void *privdata) {
(void)privdata;
redisReply *reply = (redisReply *)r;
Expand All @@ -63,7 +63,8 @@ void setCallback(redisClusterAsyncContext *acc, void *r, void *privdata) {

/* Message callback for the first 'GET' command. Modifies the key to
trigger Redis to send a key invalidation message and then sends another
'GET' command. */
'GET' command. The invalidation message is received via the registered
push callback. */
void getCallback1(redisClusterAsyncContext *acc, void *r, void *privdata) {
(void)privdata;
redisReply *reply = (redisReply *)r;
Expand Down

0 comments on commit d3a2a5f

Please sign in to comment.