yeahoffline / redis-mock

Node.js redis client mock
212 stars 110 forks source link

set() method: Support ttl argument specified as string #137

Closed nishantgeorge closed 4 years ago

nishantgeorge commented 4 years ago

The real node-redis client supports the ttl argument as string:

const client = createClient()
client.set("foo", "bar", "EX", "10")

The mock client doesn't.

Fixed this and added a test case for it.