CreateCluster: 使用 bitnami/Redis-cluster 时,无法读取 undefined 的属性 'master'
This program works fine if we use createClient instead of createCluster to connect to the bitnami AWS ElastiCache Redis Cluster container. Yeah, lPop ignores the count and always returns/pops only 1 item from the list. There are no errors or exceptions like that. I can reproduce this error with my local Docker-setup. This exact same code works fine when used against the production server (AWS ElastiCache Redis Cluster, Engine Version:6.2.6). So I strongly believe this could be due to my Docker-compose setup. Please suggest me if I am doing anything wrong or how to fix this issue. Complete stack: TypeError: Cannot read property 'master' of undefined at RedisClusterSlots.getSlotMaster (node_modules/@Redis/client/dist/lib/cluster/cluster-slots.js:50:81) at RedisClusterSlots.getClient (node_modules/@Redis/client/dist/lib/cluster/cluster-slots.js:58:25) …
内容来源: redis/node-redis