Skip to content

Full support for TTL #61

@jamesstonehill

Description

@jamesstonehill

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions