J2Cache 2.7.7 发布,Lettuce 增加连接池模式

  

J2Cache core 模块昨晚发布了 2.7.7 版本,该版本主要是针对之前的 Lettuce 支持进行了改进,增加了连接池支持,使其可以在高并发的环境下工作。

可通过如下配置进行调整:

lettuce.maxTotal = 100
lettuce.maxIdle = 10
lettuce.minIdle = 10

Jedis 和 Lettuce 是 Redis 的两大 Java 客户端开发包。J2Cache 默认用的是 Jedis ,从 2.7.0 版本开始支持 Lettuce 。Lettuce 和 Jedis 最大的不同是,设计理念更加进步,API 结构更加友好,基于 NIO 连接复用技术。但在高并发环境下,对多连接的管理和 Jedis 一样要依赖于 commons-pool 的支持,具体介绍请看官方 Wiki

Maven:

<dependency>
  <groupId>net.oschina.j2cache</groupId>
  <artifactId>j2cache-core</artifactId>
  <version>2.7.7-release</version>
</dependency>

欢迎点赞 https://gitee.com/ld/J2Cache

猜你喜欢

转载自www.oschina.net/news/102639/j2cache-2-7-7-released