Interface RedisCommands<K,​V>

    • Method Detail

      • auth

        String auth​(String username,
                    CharSequence password)
        Authenticate to the server with username and password. Requires Redis 6 or newer.
        Specified by:
        auth in interface RedisClusterCommands<K,​V>
        Parameters:
        username - the username
        password - the password
        Returns:
        String simple-string-reply
        Since:
        6.0
      • select

        String select​(int db)
        Change the selected database for the current Commands.
        Parameters:
        db - the database number
        Returns:
        String simple-string-reply
      • swapdb

        String swapdb​(int db1,
                      int db2)
        Swap two Redis databases, so that immediately all the clients connected to a given DB will see the data of the other DB, and the other way around
        Parameters:
        db1 - the first database number
        db2 - the second database number
        Returns:
        String simple-string-reply
      • getStatefulConnection

        @Deprecated
        StatefulRedisConnection<K,​V> getStatefulConnection()
        Deprecated.
        Returns:
        the underlying connection.
        Since:
        6.2, will be removed with Lettuce 7 to avoid exposing the underlying connection.