Redis Java client
We'd like to thank all the contributors who worked on this release!
@sazzad16
List<KeyValue<>>
for a map reply - those now return Map<>
.We'd like to thank all the contributors who worked on this release!
@sazzad16
We're happy to introduce the Cross-Cluster Failover feature in Jedis. This feature provides high availability and resilience by allowing seamless transitions between Redis clusters during unforeseen failures or downtimes. It's a built-in tool to minimize manual intervention and downtime and ensure a more resilient application infrastructure. Learn more about how you can automate the failover process in our documentation.
Examples to enable RESP3 are included later in this release note.
This release introduces enabling RESP3 Redis connection, when the Redis server supports it.
import redis.clients.jedis.DefaultJedisClientConfig;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.UnifiedJedis;
class DoResp3 {
public static void main() {
HostAndPort hnp = HostAndPort.from("localhost:6379");
UnifiedJedis c = UnifiedJedis(hnp, DefaultJedisClientConfig.builder().resp3().build());
c.set("foo", "value!");
c.get("foo");
}
}
import redis.clients.jedis.DefaultJedisClientConfig;
import redis.clients.jedis.HostAndPort;
import redis.clients.jedis.Jedis;
class DoResp3 {
public static void main() {
HostAndPort hnp = HostAndPort.from("localhost:6379");
Jedis c = Jedis(hnp, DefaultJedisClientConfig.builder().resp3().build());
c.set("foo", "value!");
c.get("foo");
}
}
List<KeyValue>
to read RESP3 Map reply (#3456)We'd like to thank all the contributors who worked on this release!
@s-sathish, @sazzad16, @shacharPash, @uglide and @yangbodong22011
We'd like to thank all the contributors who worked on this release!
@sazzad16, @jslopezgithub
Full Changelog: https://github.com/redis/jedis/compare/v4.4.2...v4.4.3
inactive
field in XINFO CONSUMERS reply (#3422)active-time
field in XINFO STREAM reply (#3421)We'd like to thank all the contributors who worked on this release!
@sazzad16, @dependabot, @dependabot[bot] and @yangbodong22011
Full Changelog: https://github.com/redis/jedis/compare/v4.4.1...v4.4.2
This release includes support enabling RESP3 connection on supported Redis servers.
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");
}
}
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