You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constredis=require('async-redis');letclient1=redis.createClient("redis://localhost:6379"),client2=redis.createClient("redis://localhost:6379");console.log(client1.__redisClient===client2.__redisClient)// true when it it supposed to be false;(async()=>{awaitclient1.quit()awaitclient2.info()})();
using JSON.stringify(args) is wrong since multiple clients could have the same configuration, and thus redisClients.get(serializedArgs) will always return the first created client (due to L14).
Maybe using a Symbol or some uuid (crypto.randomUUID()) is more appropriate.
Node: v12.18.2
redis: 5.0.5 (docker image)
async-redis: 2.0.0
Error occur as " AbortError: BLPOP can't be processed. The connection is already closed. "
This is ample code where an error occurs.
But below code work well.
There seems to be a problem with clients with the same option as they connected before.
is it bug?
The text was updated successfully, but these errors were encountered: