Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michał Wadas
@Ginden
  • Version: redis@2.8.0
  • Platform: Ubuntu 18, Node 10.
  • Description: Using .scan() command combined with .del() is much slower than using redis-cli.

Bash code:

redis-cli -n 3 --scan --pattern 'cache:*' |  xargs -n500 redis-cli -n 3 del

Node.js code:

  const pattern = 'cache:*';
  const del = promisify(redis.del).bind(redis);
  const scan = promisify(redis.scan).bind(redis);
  do {
    [cursor, keys] = await scan(cursor, 'MATCH', pattern, 'COUNT', '500');
    count += keys.length;
    await Promise.all(keys.map((key) => del(key)));
  } while (cursor !== '0');

For some reason, Node.js code seems to be at least tens times slower. I'm not sure if it's because of my its mistake (I'm not advanced Redis user) or bug in node-redis code.

Sergey Khabibullin
@x2bool

Hey! I made a cross-platform desktop client for Redis: https://rbmk.io

If someone wants to try it and give some feedback that would be great for the project.

Make It Count
@makeitcount
Can anyone help me with this issue please tj/connect-redis#287
karthik divi
@karthikdivi_twitter
How to use BLPOP or BRPOP on multiple queues, I see the current API is allowing only one queue.
Ario K
@itsario_twitter
I've used LPUSH and BRPOP
for enqueue and dequeue
Ario K
@itsario_twitter
I'm basically trying to implement a basic retry logic where if the redis server is unreachable for 5 minutes - stop trying to reconnect and throw errors so I can use the errors to perform failover
But the retry_strategy does not reach the total_retry_time within the allocated time
anyone else experience this issue?
Jean-Jacques Dubray
@metapgmr_twitter
Apologies if this has been asked before but a search didn't yield anything. Would someone be able to share the best way to use node_redis with AWS elasticache failover mode? or cluster mode. I have implemented a crude reconnect (which should be enough in our use case) but if there is something better I'd be happy to take a look.
Guy Korland
@gkorland
Node Redis 3 (3.0.2) is out! with many long pending fixes and enhancments https://github.com/NodeRedis/node-redis/releases/tag/v3.0.0
Ario K
@itsario_twitter
whoa
new version?
ShiboXing
@ShiboXing
my node redis reports 'unknown command zpopmin' , can anyone help?
image.png
image.png
image.png
image.png
image.png
image.png
image.png
do they just expect us to substitue it by ZREMRANGEBYRANK?
FaizanKhan
@faizan-carameltech
@ShiboXing did you find any answer to this?
I am facing same issue
@CILP did you had any luck with zpopmin/zopmax?
Romil Lodaya
@theRomie_twitter
I have deploy API on another server and redis on another server and connect each server for redis but after some time if I try to access redis data from API its giving me AbortError: Redis connection lost and command aborted. It might have been processed
运维界的权志龙
@guolin302
image.png
redis error!can anyone help?
James Ramm
@JamesRamm
Hello, does anyone have experience marrying node redis to an FRP library like bacon, flyd or rxjs? Could be especially interesting for redis streams