diff options
author | Michael Grunder <michael.grunder@gmail.com> | 2020-02-27 21:29:05 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-27 21:29:05 -0800 |
commit | 38675d23cc3bb45e2dfdeaed3a4a843f698731b3 (patch) | |
tree | c00fa09d41ee91d4d42fda4849963a3b175cc32d /README.md | |
parent | 3421ac30932eed6d49405dd9b1b7438adc85a68e (diff) |
Housekeeping fixes (#764)
Housekeeping
* Check for C++ (#758, #750)
* Include `alloc.h` in `make install` and `cmake`
* Add a `.def` file for Windows (#760)
* Include allocation wrappers referenced in adapter headers
* Fix minor syntax errors and typos in README
* Fix CI in Windows by properly escaping arguments (#761)
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -205,16 +205,16 @@ a single call to `read(2)`): redisReply *reply; redisAppendCommand(context,"SET foo bar"); redisAppendCommand(context,"GET foo"); -redisGetReply(context,&reply); // reply for SET +redisGetReply(context,(void *)&reply); // reply for SET freeReplyObject(reply); -redisGetReply(context,&reply); // reply for GET +redisGetReply(context,(void *)&reply); // reply for GET freeReplyObject(reply); ``` This API can also be used to implement a blocking subscriber: ```c reply = redisCommand(context,"SUBSCRIBE foo"); freeReplyObject(reply); -while(redisGetReply(context,&reply) == REDIS_OK) { +while(redisGetReply(context,(void *)&reply) == REDIS_OK) { // consume message freeReplyObject(reply); } @@ -432,7 +432,7 @@ SSL can only be enabled on a `redisContext` connection after the connection has been established and before any command has been processed. For example: ```c -c = redisConnect('localhost', 6443); +c = redisConnect("localhost", 6443); if (c == NULL || c->err) { /* Handle error and abort... */ } @@ -440,7 +440,7 @@ if (c == NULL || c->err) { if (redisSecureConnection(c, "cacertbundle.crt", /* File name of trusted CA/ca bundle file */ "client_cert.pem", /* File name of client certificate file */ - "client_key.pem", /* File name of client privat ekey */ + "client_key.pem", /* File name of client private key */ "redis.mydomain.com" /* Server name to request (SNI) */ ) != REDIS_OK) { printf("SSL error: %s\n", c->errstr); |