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/multiList<Object> exec()
multi(). #watch(byte[]) the operation will fail if any of watched keys has been modified.http://redis.io/commands/execvoid discard()
multi().http://redis.io/commands/discardvoid watch(byte[]... keys)
keys for modifications during transaction started with multi().keys - http://redis.io/commands/watchvoid unwatch()
#watch(byte[]) keys.http://redis.io/commands/unwatch