diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 14:20:51 +0100 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2010-11-01 14:20:51 +0100 |
commit | 5fa8d305996ada79f8266ab542df8e9daa80d162 (patch) | |
tree | 6244e3c00b4fdc1506d305159ccc4b3d61a5cef1 /README.md | |
parent | 30a9f8f2715cba85cab1f06a4281cb780e198ddb (diff) |
There is no longer need for a separate redisDisconnect
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -107,6 +107,15 @@ Note that this function will take care of freeing sub-replies objects contained in arrays and nested arrays, so there is no need for the user to free the sub replies (it is actually harmful and will corrupt the memory). +### Cleaning up + +To disconnect and free the context the following function can be used: + + void redisFree(redisContext *c); + +This function immediately closes the socket and then free's the allocations done in +creating the context. + ### Sending commands (cont'd) Together with `redisCommand`, the function `redisCommandArgv` can be used to issue commands. |