From 0a732b8c0ec234a3d2fd1bb05231c47a0c7e396b Mon Sep 17 00:00:00 2001 From: David Trejo Date: Fri, 27 Apr 2012 21:07:59 -0400 Subject: [PATCH] readme: warn that code in callbacks to commands in a multi are not atomic --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index afc6227c3d..11e2017839 100644 --- a/README.md +++ b/README.md @@ -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()