Interface RedisAsyncCommands<K,​V>

    • Method Detail

      • auth

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

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

        RedisFuture<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.