All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.lettuce.core.RedisAsyncCommandsImpl Maven / Gradle / Ivy

Go to download

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.async.RedisAsyncCommands;
import io.lettuce.core.cluster.api.async.RedisClusterAsyncCommands;
import io.lettuce.core.codec.RedisCodec;
import io.lettuce.core.json.JsonParser;
import reactor.core.publisher.Mono;

/**
 * An asynchronous and thread-safe API for a Redis connection.
 *
 * @param  Key type.
 * @param  Value type.
 * @author Mark Paluch
 */
public class RedisAsyncCommandsImpl extends AbstractRedisAsyncCommands
        implements RedisAsyncCommands, RedisClusterAsyncCommands {

    /**
     * Initialize a new instance.
     *
     * @param connection the connection to operate on
     * @param codec the codec for command encoding
     *
     */
    public RedisAsyncCommandsImpl(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