MyGit

v5.0.0-beta1

redis/jedis

版本发布时间: 2023-05-21 18:02:16

redis/jedis最新发布版本:v5.0.2(2023-10-19 19:20:25)

Changes

🚀 New Features


This release includes support enabling RESP3 connection on supported Redis servers.

  1. 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");
    }
}
  1. 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

相关地址:原始地址 下载(tar) 下载(zip)

查看:2023-05-21发行的版本