-1

I want to update the sorted set record using Redis client in node js. for update the one record I use client.zAdd(key,{score:score, value:memberId}) . Is there any command or function that I can use for the bulk update in Redis. I google this but didn't get any solution.

thank you in advance.

1 Answers1

0

For bulk update you can use

List members = [
  {
    score: score,
    value: memberId
  }, {
    score: score,
    value: memberId
  }, {
    score:score,
    value:memberId
  }, ...
];
    
   
client.zAdd(key,members);
Tyler2P
  • 2,324
  • 26
  • 22
  • 31