swarthy/redis-semaphore

Node-redis support

krtk6160 opened this issue · 6 comments

Is there any way to use this library with node-redis rather than ioredis?

No, ioredis methods return promises, meanwhile node-redis has callback interface, so they are incompatible.

No, ioredis methods return promises, meanwhile node-redis has callback interface, so they are incompatible.

We use async-redis to make node-redis work with promises. If I somehow bypass the check that checks the instance of the client, would it work?

I dont think so

Okay, thanks!

node-redis supports promises natively now and it is still the default recommended client for nodejs, so it's probably worth considering adding support.

@rawnsley PR with adding support for node-redis is welcome