5 ms·
Redis doesn't support transaction rollbacks, so they're not really "atomic."
by misframer 14y ago
Redis doesn't support transaction rollbacks, so they're not really "atomic."
- giulianob 14y agoThey do have DISCARD so if you call MULTI and want to bail out you can say DISCARD. What they don't have is automatically rolling back if there's a failure while executing commands. However, failures in Redis are mainly going to happen if you issue a bad command (something you should catch during development). IIRC, if there's a power failure or something happens before the transaction finishes, Redis is able to discard the transaction during startup.