v5.0.0-beta1
版本发布时间: 2023-05-21 18:02:16
redis/jedis最新发布版本:v5.0.2(2023-10-19 19:20:25)
Changes
🚀 New Features
- Support RESP3 protocol through URI/URL (#3403)
This release includes support enabling RESP3 connection on supported Redis servers.
- One can pass enable RESP3 with a UnifiedJedis connection via:
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.UnifiedJedis;
class DoResp {
public static void main() {
HostAndPort hnp = HostAndPort.from("localhost:6379");
UnifiedJedis c = UnifiedJedis(hnp, DefaultJedisClientConfig.builder().protocol(RedisProtocol.RESP3).build());
c.set("foo", "value!");
c.get("foo");
}
}
- One can pass enable RESP3 with a Jedis connection via:
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;
class DoResp {
public static void main() {
HostAndPort hnp = HostAndPort.from("localhost:6379");
Jedis c = Jedis(hnp, DefaultJedisClientConfig.builder().protocol(RedisProtocol.RESP3).build());
c.set("foo", "value!");
c.get("foo");
}
}
Full Changelog: https://github.com/redis/jedis/compare/v5.0.0-alpha2...v5.0.0-beta1