Skip to content
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

Full support for TTL #61

Open
jamesstonehill opened this issue Jul 3, 2019 · 0 comments
Open

Full support for TTL #61

jamesstonehill opened this issue Jul 3, 2019 · 0 comments

Comments

@jamesstonehill
Copy link

Not sure how easy this would be but it would be awesome to have full support for ttl

const mock = require("redis-mock");
const client = mock.createClient();

client.setex("someKey", 300, "someValue");

client.ttl("someKey", (err, reply) => {
  console.log(reply);
});

At the moment reply is always -1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant