
io.lettuce.core.RedisReactiveCommandsImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core;
import io.lettuce.core.api.StatefulRedisConnection;
import io.lettuce.core.api.reactive.RedisReactiveCommands;
import io.lettuce.core.cluster.api.reactive.RedisClusterReactiveCommands;
import io.lettuce.core.codec.RedisCodec;
import io.lettuce.core.json.JsonParser;
import reactor.core.publisher.Mono;
/**
* A reactive and thread-safe API for a Redis Sentinel connection.
*
* @param Key type.
* @param Value type.
* @author Mark Paluch
*/
public class RedisReactiveCommandsImpl extends AbstractRedisReactiveCommands
implements RedisReactiveCommands, RedisClusterReactiveCommands {
/**
* Initialize a new instance.
*
* @param connection the connection to operate on.
* @param codec the codec for command encoding.
*
*/
public RedisReactiveCommandsImpl(StatefulRedisConnection connection, RedisCodec codec,
Mono parser) {
super(connection, codec, parser);
}
@Override
public StatefulRedisConnection getStatefulConnection() {
return (StatefulRedisConnection) super.getConnection();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy