ioredis icon indicating copy to clipboard operation
ioredis copied to clipboard

Expire doesn't seem to work with non-integer arguments for seconds

Open akshitdewan opened this issue 1 year ago • 0 comments

Hi,

I ran the following code:

await client
        .multi()
        .zadd(key, score, member)
        .expire(key, 50.555)

And when the expiration key is a floating point value like 50.555, the TTL seems to remain -1. Is this intended behavior? Is it possible to enforce an integer requirement or choose a different default?

akshitdewan avatar Aug 31 '23 19:08 akshitdewan