Jedis 4.0.0 发布

栏目: 软件资讯 · 发布时间: 4年前

内容简介:Jedis 是 Redis 的一个 Java 客户端库,旨在提高性能和易用性。Jedis 与 redis 2.8.x、3.xx 及更高版本完全兼容。 新功能 引入 JedisPooled JedisPool 的替代品,实现了与 JedisCluster 相同的接口,允许在 Jedi...

Jedis 是 Redis 的一个 Java 客户端库,旨在提高性能和易用性。Jedis 与 redis 2.8.x、3.xx 及更高版本完全兼容。

新功能

  • 引入 JedisPooled
    • JedisPool 的替代品,实现了与 JedisCluster 相同的接口,允许在 JedisCluster 和 JedisPooled 之间轻松切换。
  • 引入 JedisSharding
  • 引入 ClusterPipeline 和 ShardedPipeline
  • 引入 ReliableTransaction
  • 引入 UnifiedJedis
  • 引入 ConnectionProvider 接口和一些实现
  • 引入 CommandExecutor 接口和一些实现
  • 增加了 RedisJSON 和 RedisJSON 2 命令
  • 增加了 RediSearch 命令
  • ……

变化

  • 具有 GenericObjectPoolConfig<Jedis> 的 JedisCluster 构造函数现在接受 GenericObjectPoolConfig<Connection>
  • 大多数 SortedSet 方法改为返回 Java List 而不是 Set
  • 许多方法现在返回原始值(long/boolean/double,而不是 Long/Boolean/Double)
  • ShardedJedisPool、Sharded、ShardedJedis、BinaryShardedJedis、ShardInfo、JedisShardInfo 类被移除
  • BinaryJedis 和 BinaryJedisCluster 类已被删除,这些类的方法可以分别在 Jedis 和 JedisCluster 类中使用
  • 删除了 Client 和 BinaryClient 类
  • redis.client.jedis.commands 包被重新实现,意味着 Commands 接口被重组
  • 删除了 Sentinel 类

维护

  • 将依赖性 org.slf4j:slf4j-api 升级到 1.7.32 版本
  • 添加了依赖性 org.json:json 版本 20211205
  • 添加了依赖性 com.google.code.gson:gson 版本 2.8.9

更改列表

  • 通过替换无效的 JedisDataException 抛出 IllegalStateException
  • 支持带有 TLS 的 Sentinel
  • 删除 EVAL 和 EVALSHA 命令中无限超时的用法
  • 避免 SetFromList 类的 NullPointException
  • JedisNoReachableClusterNodeException 应扩展 JedisClusterOperationException
  • 从 Transaction 中移除 WATCH
  • JedisDataException 不应该被包裹在 Pool 操作中
  • 删除 SYNC 命令
  • 删除 ShardedJedisPipeline 类
  • 删除 JedisPoolAbstract 类并隐藏 Pool.initPool() 方法
  • 限制 Jedis 中 setDataSource 的访问
  • 升级依赖关系
  • 移除被保留的废弃内容
  • 解决 XADD 冲突
  • 使用 slf4j-simple 来替换 log4j 的实现
  • ……

更多详情可查看:https://github.com/redis/jedis/releases/tag/v4.0.0


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

An Introduction to the Analysis of Algorithms

An Introduction to the Analysis of Algorithms

Robert Sedgewick、Philippe Flajolet / Addison-Wesley Professional / 1995-12-10 / CAD 67.99

This book is a thorough overview of the primary techniques and models used in the mathematical analysis of algorithms. The first half of the book draws upon classical mathematical material from discre......一起来看看 《An Introduction to the Analysis of Algorithms》 这本书的介绍吧!

URL 编码/解码
URL 编码/解码

URL 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具