案列
127.0.0.1:6379> SET msg hello
OK
127.0.0.1:6379> MULTI
OK
127.0.0.1:6379> SADD fruit apple bannana
QUEUED
127.0.0.1:6379> RPUSH msg "good bye" "bye bye"
QUEUED
127.0.0.1:6379> SADD alphabet a b c d
QUEUED
127.0.0.1:6379> EXEC
1) (integer) 2
2) (error) WRONGTYPE Operation against a key holding the wrong kind of value
3) (integer) 4
127.0.0.1:6379> SMEMBERS fruit # 即使事务队列中命令出错,整个事务也会继续执行且结果保留
1) "bannana"
2) "apple"