redis/ioredis ? reverse-engineered prompt
Reverse engineered prompt
Build me a solid Redis client for Node.js in TypeScript that feels easy to use in real projects. It should connect to a normal Redis server, but also handle clusters and sentinel setups, support callbacks and promises, and work well with things like pipelining, pub and sub, streams, Lua scripts, functions, ACL, TLS, and binary data.
I want it to be reliable when Redis is slow or temporarily unavailable, so include an offline queue, ready checking, good error handling, and sensible defaults. Make sure it supports command argument and reply transformations, transparent key prefixing, and simple ways to add custom commands. Include a few clear usage examples and tests so I can see how it behaves, and look up current docs online if you need to.
Are you gonna build this?
make sure you review the code using coderabbit