-
Notifications
You must be signed in to change notification settings - Fork 34
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
Possible to add TTL on keys into Redis #14
Comments
yes, I agree that we should use a TTS to expire redis keys, but that is in fact what I am doing here: I set a 10 second expires value. Are you seeing keys not getting cleared from redis? |
I knew it ;) but no, all keys stay in redis... I don't understand why... |
What version of redis server are you running? Per this: it seems like that option was added in Redis 2.6.12. you could always try changing the code to do it this way:
|
Hi,
I tested but I have the same issue :( the code:
I can see my key but the TTL is -1
I can force a TTL with cli and it woks:
After that I downloaded and compiled the last redis server (http://redis-5.0.5.tar.gz/) Other test:I tested with:
same issue. But I created other simple script with the same data, and setex works like a charm... I'm sorry but I don't know what to try.. :( |
After lot of things, I found.
|
Hi,
I use your dev with freeswitch mode.
I want to add TTL to delete redis keys or delete it when I receive BYE.
But add TTL is simplest than delete key with BYE no ?
I'm not sure, but I think the redis data is used before the SIPREC 200OK generation. After that, I can delete key into redis....
thanks in advance
The text was updated successfully, but these errors were encountered: