Lettuce 5.0.4 已发布,Lettuce 是一个可伸缩线程安全的Redis客户端。多个线程可以共享同一个 RedisConnection。它利用优秀 nettyNIO 框架来高效地管理多个连接。
示例代码:
RedisClient client = new RedisClient("localhost")
RedisConnection<String, String> connection = client.connect()
String value = connection.get("key")
5.0.4 是 Lettuce 5 系列的第四个 bug 修复版本,解决了 12 个问题:
Commands
Add AUTH option to MIGRATE command #733
Add MASTER type to KillArgs #760
Fixes
Warning when refreshing topology #756 (Thanks to @theliro )
DefaultEndpoint.QUEUE_SIZE becomes out of sync, preventing command queueing #764 (Thanks to @nivekastoreth )
DefaultEndpoint contains System.out.println(…) #765
Do not retry completed commands through RetryListener #767
Other
Upgrade to netty 4.1.23.Final #755
Upgrade to Reactor Bismuth SR8 #758
Upgrade to RxJava 1.3.8 #759
Extend documentation for argument objects #761
Upgrade to RxJava 2.1.13 #771
Upgrade to netty 4.1.24.Final #770
更新方式:
<dependency> <groupId>io.lettuce</groupId> <artifactId>lettuce-core</artifactId> <version>5.0.4.RELEASE</version> </dependency>
下载地址: https://github.com/lettuce-io/lettuce-core/releases/tag/5.0.4.RELEASE