Interface RedisConnectionCommands

All Known Subinterfaces:
DefaultedRedisClusterConnection, DefaultedRedisConnection, RedisClusterConnection, RedisCommands, RedisConnection, RedisConnectionUtils.RedisConnectionProxy, StringRedisConnection
All Known Implementing Classes:
AbstractRedisConnection, DefaultStringRedisConnection, JedisClusterConnection, JedisConnection, LettuceClusterConnection, LettuceConnection

public interface RedisConnectionCommands
Connection-specific commands supported by Redis.
Author:
Costin Leau, Christoph Strobl, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    echo(byte[] message)
    Returns message via server roundtrip.
    Test connection.
    void
    select(int dbIndex)
    Select the DB with given positive dbIndex.
  • Method Details

    • select

      void select(int dbIndex)
      Select the DB with given positive dbIndex.
      Parameters:
      dbIndex - the database index.
      See Also:
    • echo

      @Nullable byte[] echo(byte[] message)
      Returns message via server roundtrip.
      Parameters:
      message - the message to echo.
      Returns:
      the message or null when used in pipeline / transaction.
      See Also:
    • ping

      @Nullable String ping()
      Test connection.
      Returns:
      Server response message - usually PONG. null when used in pipeline / transaction.
      See Also: