Module lettuce.core

Interface RedisTransactionalReactiveCommands<K,​V>

Type Parameters:
K - Key type.
V - Value type.
All Known Subinterfaces:
RedisClusterPubSubReactiveCommands<K,​V>, RedisPubSubReactiveCommands<K,​V>, RedisReactiveCommands<K,​V>
All Known Implementing Classes:
AbstractRedisReactiveCommands, RedisAdvancedClusterReactiveCommandsImpl, RedisClusterPubSubReactiveCommandsImpl, RedisPubSubReactiveCommandsImpl, RedisReactiveCommandsImpl, RedisSentinelReactiveCommandsImpl

public interface RedisTransactionalReactiveCommands<K,​V>
Reactive executed commands for Transactions.
Since:
4.0
Author:
Mark Paluch
Generated class:
by io.lettuce.apigenerator.CreateReactiveApi
  • Method Summary

    Modifier and Type Method Description
    Mono<String> discard()
    Discard all commands issued after MULTI.
    Mono<TransactionResult> exec()
    Execute all commands issued after MULTI.
    Mono<String> multi()
    Mark the start of a transaction block.
    Mono<String> unwatch()
    Forget about all watched keys.
    Mono<String> watch​(K... keys)
    Watch the given keys to determine execution of the MULTI/EXEC block.
  • Method Details

    • discard

      Mono<String> discard()
      Discard all commands issued after MULTI.
      Returns:
      String simple-string-reply always OK.
    • exec

      Execute all commands issued after MULTI.
      Returns:
      Object array-reply each element being the reply to each of the commands in the atomic transaction. When using WATCH, EXEC can return a discarded TransactionResult.
      See Also:
      TransactionResult.wasDiscarded()
    • multi

      Mono<String> multi()
      Mark the start of a transaction block.
      Returns:
      String simple-string-reply always OK.
    • watch

      Mono<String> watch​(K... keys)
      Watch the given keys to determine execution of the MULTI/EXEC block.
      Parameters:
      keys - the key.
      Returns:
      String simple-string-reply always OK.
    • unwatch

      Mono<String> unwatch()
      Forget about all watched keys.
      Returns:
      String simple-string-reply always OK.