mranney/node_redis — Issue #154: Atomicity when issuing redis commands in the callbacks of a multi queue?
Author: manast
Created: 2011-11-19 20:47:11+00:00
State: open

Hello,

I think it would be appropriate to update the documentation explaining if the call to mget in the example of multi is also atomic or not:

```javascript
// multi chain with an individual callback
client.multi()
.scard("bigset")
.smembers("bigset")
.keys("*", function (err, replies) {
client.mget(replies, redis.print);
})
.dbsize()
.exec(function (err, replies) {
console.log("MULTI got " + replies.length + " replies");
replies.forEach(function (reply, index) {
console.log("Reply " + index + ": " + reply.toString());
});
});
```
Because it may look as if the call client.mget(replies,redis.print) also is atomic, and that when the callback of the exec is called, even this command has been executed, but I suspect this is not the case :/