We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
redis.ttl(key)
returns true, while it should return the time to expiration according to the redis documentation.
Is there a way to get the remaining time ?
Thanks.
The text was updated successfully, but these errors were encountered:
All Redis commands in Node.js are asynchronous which means you'll have to catch the result in a callback:
redis.ttl(key, function(error, ttl){ console.log('TTL is', ttl) });
Sorry, something went wrong.
Yes, sorry, I just figured it out a few minutes after posting this issue. That is why I closed it immediately.
Thanks for your answer anyway.
No branches or pull requests
Hi,
returns true, while it should return the time to expiration according to the redis documentation.
Is there a way to get the remaining time ?
Thanks.
The text was updated successfully, but these errors were encountered: