Zihua Li

Results 343 comments of Zihua Li

> @luin I have created a singleton class which returns only one client and I use that to call redis functions, > > Do I explicitly have to quit the...

@keshav-gaur Nothing comes to my mind. The code looks correct so I assume there should be somewhere else that also creates Redis connections. You can try to assign the connection...

Thanks for bringing this up. It's not on the roadmap for the moment but I think it's nice to have. Any PRs and discussions are welcome.

@danitseitlin Can we take a step back? What do you want with the raw mode? The protocol used by ioredis and Redis is binary-safe so it's encoding agnostic. If you...

Turns out it is not as easy as it should be to skip response transformation. ioredis does provide a method to opt-out but it affects all ioredis instances: ```javascript Redis.Command.setReplyTransformer("hgetall",...

I think a common issue is that you may not pass the options to ioredis. Maybe the options were in a deeper level or something. It's hard to say without...

> > I think a common issue is that you may not pass the options to ioredis. Maybe the options were in a deeper level or something. It's hard to...

ioredis is able to execute arbitrary Redis commands via `.call`. You can do `redis.call('JSON.GET', ...yourargs)`. Does this solve your issue?

@wenq1 Added an example: https://github.com/luin/ioredis/blob/main/examples/module.js.

It's hard for users to tell in advance whether a node is lost temporarily or permanently so I don't think we should make this behavior configurable. The current logic should...