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

io.lettuce.core.protocol.ProtocolVersion 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.protocol;

/**
 * Versions of the native protocol supported by the driver.
 *
 * @author Mark Paluch
 * @since 6.0
 */
public enum ProtocolVersion {

    /**
     * Redis 2 to Redis 5.
     */
    RESP2,

    /**
     * Redis 6.
     */
    RESP3;

    /**
     * Returns the newest supported protocol version.
     *
     * @return the newest supported protocol version.
     */
    public static ProtocolVersion newestSupported() {
        return RESP3;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy