Skip to content

Redis getex does not set the ttl #22526

@D0x45

Description

@D0x45

What version of Bun is running?

1.2.15+df017990a

What platform is your computer?

Linux 6.16.1 x86_64 unknown

What steps can reproduce the bug?

await redis.getex('key', 'EX', 150);
console.log(
    await redis.ttl('key')
); // -1

What is the expected behavior?

It is expected that the ttl would be in range [149, 150] taking in the query latency.
Using raw command works as intended:

redis.send('GETEX', [ 'key', 'EX', '300' ]);

What do you see instead?

No TTL set for the key.

Additional information

Redis version=8.2.1, bits=64,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingredisSomething to do with `redis` in the "bun" module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions