You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
readme: warn that code in callbacks to commands in a multi are not atomic
This commit is contained in:
@@ -376,6 +376,8 @@ Redis. The interface in `node_redis` is to return an individual `Multi` object
|
||||
.scard("bigset")
|
||||
.smembers("bigset")
|
||||
.keys("*", function (err, replies) {
|
||||
// NOTE: code in this callback is NOT atomic
|
||||
// this only happens after the the .exec call finishes.
|
||||
client.mget(replies, redis.print);
|
||||
})
|
||||
.dbsize()
|
||||
|
Reference in New Issue
Block a user