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
-
Method Details
-
select
void select(int dbIndex) Select the DB with given positivedbIndex
.- Parameters:
dbIndex
- the database index.- See Also:
-
echo
@Nullable byte[] echo(byte[] message) Returnsmessage
via server roundtrip.- Parameters:
message
- the message to echo.- Returns:
- the message or null when used in pipeline / transaction.
- See Also:
-
ping
Test connection.- Returns:
- Server response message - usually PONG. null when used in pipeline / transaction.
- See Also:
-