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
Thanks @leibale. If we don't know now the number of members, would auto-pipelineing be the recommended approach like below? or do recommend something else?
const promises = [];
for (const member of members) {
promises.push(nodeRedisClient.zIncrBy(key, val, member));
}
const allResults = await Promise.allSettled(promises);
// check allResults
Description
What's the best practice to achieve atomic updates with node-redis client for multiple members from nodejs?
https://github.com/redis/node-redis/blob/master/packages/client/lib/commands/ZINCRBY.ts
Also, do you have a doc stating request/response examples for clients?
The text was updated successfully, but these errors were encountered: