Interface StatefulRedisConnection<K,​V>

    • Method Detail

      • isMulti

        boolean isMulti()
        Returns:
        true, if the connection is within a transaction.
      • sync

        RedisCommands<K,​V> sync()
        Returns the RedisCommands API for the current connection. Does not create a new connection.
        Returns:
        the synchronous API for the underlying connection.
      • async

        RedisAsyncCommands<K,​V> async()
        Returns the RedisAsyncCommands API for the current connection. Does not create a new connection.
        Returns:
        the asynchronous API for the underlying connection.
      • addListener

        void addListener​(PushListener listener)
        Add a new listener to consume push messages.
        Parameters:
        listener - the listener, must not be null.
        Since:
        6.0
      • removeListener

        void removeListener​(PushListener listener)
        Remove an existing listener.
        Parameters:
        listener - the listener, must not be null.
        Since:
        6.0