Replies: 1 comment
-
quick update: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
As per documentation
It means when there is an error I should free the redisContext and initiate a new connection. is this the correct way to do it?
I looked at the provided examples "example-push.c"
and found
Inside assertReplyAndFree it checks if a reply is NULL or its type is different and if it's so they call exit(-1)
what if I don't want to exit at this point, in my application I expect different types to happen a lot.
so in this case instead of exiting I'm freeing the rediscontext object and creating a new connection
Am I doing the right thing here, I think this might be too slow to initiate a new connection every time a key is not found in Redis DB.
Beta Was this translation helpful? Give feedback.
All reactions