Interface RedisTransactionalCommands<K,​V>

  • Type Parameters:
    K - Key type.
    V - Value type.
    All Known Subinterfaces:
    RedisClusterPubSubCommands<K,​V>, RedisCommands<K,​V>, RedisPubSubCommands<K,​V>

    public interface RedisTransactionalCommands<K,​V>
    Synchronous executed commands for Transactions.
    Since:
    4.0
    Author:
    Mark Paluch
    Generated class:
    by io.lettuce.apigenerator.CreateSyncApi
    • Method Detail

      • discard

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

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

        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

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