public interface RedisTxCommands
Modifier and Type | Method and Description |
---|---|
void |
discard()
Discard all commands issued after
multi() . |
List<Object> |
exec()
Executes all queued commands in a transaction started with
multi() . |
void |
multi()
Mark the start of a transaction block.
|
void |
unwatch()
Flushes all the previously
#watch(byte[]) keys. |
void |
watch(byte[]... keys)
Watch given
keys for modifications during transaction started with multi() . |
void multi()
exec()
or rolled back using discard()
.http://redis.io/commands/multi
List<Object> exec()
multi()
. #watch(byte[])
the operation will fail if any of watched keys has been modified.http://redis.io/commands/exec
void discard()
multi()
.http://redis.io/commands/discard
void watch(byte[]... keys)
keys
for modifications during transaction started with multi()
.keys
- http://redis.io/commands/watch
void unwatch()
#watch(byte[])
keys.http://redis.io/commands/unwatch