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()List<Object> exec()
multi(). #watch(byte[]...) the operation will fail if any of watched keys has been modified.void discard()
multi().void watch(byte[]... keys)
keys for modifications during transaction started with multi().keys - must not be null.void unwatch()
#watch(byte[]...) keys.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.