February 2018
Intermediate to advanced
382 pages
11h 33m
English
The differences between transactions in Redis and RDBMS merit attention.
The key difference is that there is no rollback feature in a Redis transaction. Generally speaking, two types of error may occur in a Redis transaction while different handling mechanisms are taken:
127.0.0.1:6379> MULTI OK 127.0.0.1:6379> SET FOO BAR QUEUED 127.0.0.1:6379> GOT FOO (error) ERR unknown command 'GOT' 127.0.0.1:6379> INCR MAS QUEUED 127.0.0.1:6379> EXEC (error) EXECABORT Transaction discarded because of previous errors. ...
Read now
Unlock full access