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