redis / ioredis

🚀 A robust, performance-focused, and full-featured Redis client for Node.js.
MIT License
14.31k stars 1.19k forks source link

fix `.time` return type to match actual values #1873

Open Vivalldi opened 6 months ago

Vivalldi commented 6 months ago

The TIME command returns as a two item list. The values in the list are strings. The values returned in JS are also strings.

https://redis.io/commands/time/

Example

await redis.time()
// ["1711650048", "618527"]

Code Gen I tried running the generator locally but the diff generated is massive & modifies unexpected files.