-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
redis entries are not deleted #36
Comments
The redis keys are inserted with an expiry of 10 seconds, here Therefore, they should disappear after 10 seconds. Perhaps the latter set request is somehow eliminating this expires value. Not sure, I will have to look into it |
could you do a test for me? Try changing this line from
to
and see if that fixes it? |
You are right. I never see any TTL on the key as if it wasn't never set (it always returns -1). As you mentioned, I think the latter SET request is discarding the expiry value. From the Redis documetation:
Since the KEEPTTL is supported only in Redis >= 6.0, I couldn't test. Will try after upgrading Redis. Alternatively, may be we can set the the expiry again during the second call using 'SET EX' option or 'SETEX' command. |
yes, you could just replicate the set ex command as used earlier. Try that -- if it works let me know. Feel free to make a PR |
Yes, that worked. Thanks a lot.
|
Hi,
I use this application with Freeswitch. Entries created in the redis server are not deleted and stay forever even after the SIPREC call is terminated with BYE gracefully. It seems it's happening all the time. Will appreciate any help for this.
Thanks in advance.
The text was updated successfully, but these errors were encountered: