Skip to content

Update dependency redis.clients:jedis to v5

Olivier Heintz requested to merge renovate/redis.clients-jedis-5.x into demo

This MR contains the following updates:

Package Update Change
redis.clients:jedis major 4.4.6 -> 5.1.0

Release Notes

redis/jedis

v5.1.0

Compare Source

Changes

🔥 Breaking Changes

  • Adding Pipeline & Transaction with failover to multi cluster (#​3602)
  • Move JedisMetaInfo into parent package and made private (#​3590)
  • Encode map in encoded object (#​3555)

🧪 Experimental Features

  • Pipeline & Transaction with failover to multi cluster (#​3602)
  • Support GEOSHAPE field type in RediSearch (#​3561)
  • Re-add FT.DROPINDEX and FT.ALTER in pipeline (#​3549)

🚀 New Features

  • Add CLUSTER SHARDS command support (#​2984) (#​3598)
  • Added HSET variants to ease complex objects (#​3605)
  • Introducing periodic topology mechanism for JedisCluster (#​3596)
  • Support RESET command (#​3015)
  • Broadcast FUNCTION LOAD command methods (#​3557)
  • Feature: Triggers and functions commands (#​3531)
  • Escape utils for RediSearch queries (#​3544)
  • Address further CLIENT SETINFO suffix rules (#​3536)
  • Extend CLIENT SETINFO support (#​3509)

🐛 Bug Fixes

  • Direct FT.CREATE to proper node in LIGHT search mode (#​3593)
  • Fix binary variants of XRANGE and XREAD commands (#​3571)

🧰 Maintenance

  • Use simple version of HSET (#​3587)
  • Linking to Redis learning resources (#​3583)
  • Added support for releasing minor version snapshots (#​3578)
  • Allow getting schema field name (#​3576)
  • Encoded map in encoded object (#​3555)
  • Improved Triggers and functions tests (#​3554)
  • Different variable names for json v1 and v2 interfaces (#​3553)
  • Fixed Search/Gears test regression (#​3552)
  • Improved Triggers and functions commands (#​3551)
  • Added JavaDoc for GeoRadiusResponse (#​3542)
  • Disabling doctests on tag (#​3524)
  • Move pom.properties file into redis.clients.jedis package (#​3589)
  • Bump org.json:json from 2023061 to 2023101 (#​3586)
  • Bump org.apache.commons:commons-pool2 from 2.11.1 to 2.12.0 (#​3565)
  • Bump junixsocket-core to 2.8.1 (#​3573)
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.5.0 to 3.6.0 (#​3539)
  • Bump mockito-inline from 3.12.4 to 4.11.0 (#​3232)
  • Bump org.apache.maven.plugins:maven-surefire-plugin from 3.2.1 to 3.2.2 (#​3611)
  • Bump org.apache.maven.plugins:maven-javadoc-plugin from 3.6.0 to 3.6.2 (#​3612)
  • Bump org.apache.maven.plugins:maven-surefire-plugin from 3.1.2 to 3.2.1 (#​3600)

Contributors

We'd like to thank all the contributors who worked on this release!

@​bsbodden, @​chayim, @​dependabot, @​dependabot[bot], @​ihaohong, @​sazzad16, @​wormogig and @​yangbodong22011

v5.0.2

Compare Source

Changes

🐛 Bug Fixes

  • Fix SORTABLE argument when creating a Search index using FT.CREATE (#​3584)
  • Fix binary variants of XRANGE and XREAD commands (#​3571)

🚀 New Features

  • Added broadcast support for FUNCTION LOAD methods (#​3557)
  • Support GEOSHAPE field type in RediSearch (#​3561)

🧰 Maintenance

v5.0.1

Compare Source

Changes

🔥 Breaking Changes

  • Encode map in encoded object (#​3555)
    • In the 5.0.0 release, the encoded/String variants of scripting methods return List<KeyValue<>> for a map reply - those now return Map<>.

🚀 New Features

  • Extend CLIENT SETINFO support with added suffix rules (#​3509, #​3536)
  • Added quote escaping helper functions for search queries (#​3544)

🧰 Maintenance

  • Re-enabled FT.DROPINDEX and FT.ALTER in pipeline (#​3549)
  • Added JavaDoc for GeoRadiusResponse (#​3542)

Contributors

We'd like to thank all the contributors who worked on this release!

@​sazzad16

v5.0.0

Compare Source

What's New?

Automatic Cross-Cluster Failover

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.

Full Redis 7.2 and RESP3 Support

Examples to enable RESP3 are included later in this release note.


Changes

🔥 Breaking Changes (Listed here)

🚀 New Features

🧪 Experimental Features

  • Cross cluster failover (#​3310)
  • Allow setting default dialect for RediSearch module (#​3452)
  • Support JSON.MERGE command (#​3429)
  • Support TOPK.LIST with WITHCOUNT option (#​3495)

🐛 Bug Fixes

  • Fix return value of HRANDFIELD with values when count is negative (#​3425, #​3430)
  • Return List instead of Set in ZDIFF, ZINTER, ZUNION commands (#​3431)

🧰 Maintenance


RESP3 Examples

This release introduces enabling RESP3 Redis connection, when the Redis server supports it.

  1. Enable RESP3 to a UnifiedJedis object:
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");
    }
}
  1. Enable RESP3 to a Jedis object:
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");
    }
}

Configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this MR and you won't be reminded about this update again.


  • If you want to rebase/retry this MR, check this box.

This MR has been generated by Renovate Bot.

Edited by Olivier Heintz

Merge request reports