client.multi() is a constructor that returns a Multi object.
client.multi() is a constructor that returns a Multi object. Multi objects share all of the same command methods as client objects do. Commands are queued up inside the Multi object until Multi.exec() is invoked.
the callback
Identical to Multi.exec but with the difference that executing a single command will not use transactions.
Identical to Multi.exec but with the difference that executing a single command will not use transactions.
the callback
incr("incr thing", redis.print);
scard("bigset")
script('load', 'return 1')
smembers("bigset")
MULTI commands are queued up until an EXEC is issued, and then all commands are run atomically by Redis. The interface in node_redis is to return an individual Multi object by calling client.multi(). If any command fails to queue, all commands are rolled back and none is going to be executed (For further information look at transactions).