Redis 客户端,Redisson 2.2.5 发布

jopen 8年前

Redisson 2.2.5 发布,此版本更新内容如下:

Feature - new object added RBloomFilter
Feature - new object added RAtomicDouble
Feature -tryAdd,tryAddAsync,addAllandaddAllAsyncmethods added toRScoredSortedSet
Feature -RKeys.countandRKeys.countAsyncmethods added
Feature -RedissonClient.saveBucketsmethod added
Feature -trySet,trySetAsync,compareAndSetandgetAndSetmethods added toRBucket
Feature -fastPutIfAbsentandfastPutIfAbsentAsyncmethods added toRMap
Improvement -RMap.putIfAbsentoptimization
Improvement -RBitSetindex range extended to Integer.MAX_VALUE*2
Improvement -RAtomicLong.getAndAddoptimization
Fixed - infinity loop duringRMapiteration
Fixed -  wrong timeout value used duringRBatchexecution
Fixed - connection handling whenisReadFromSlaves = false
Fixed -RMap.addAndGetAsynckey encoding
Fixed -RBatcherrors handling
Fixed -RBlockingQueue.pollLastAndOfferFirstToAsyncdoes not block properly 

下载:https://github.com/mrniko/redisson/archive/redisson-2.2.5.zip

Redisson 是基于Redis服务之上构建的分布式、可伸缩的Java数据结构,高级的Redis客户端。【redis官方推荐

Redisson 是使用熟悉的Java数据结构来发挥Redis的威力,基于lettuce Redis客户端和Netty 4 ,兼容 Redis 2.6+ and JDK 1.6+,使用Apache License 2.0授权协议,阅读 wiki 来获取更多使用信息

哨兵服务模式:

  • 自动发现主从服务

  • 自动发现新主服务

  • 自动发现新从服务

  • 自动发现从服务上下线切换

主服务写,从服务读

主从模式:用从服务读,主服务写

单一服务模式: 使用同一个服务器读取写入

  • 分布式 java.util.List 

  • 分布式 java.util.Set 

  • 分布式 java.util.SortedSet 

  • 分布式 java.util.Queue 

  • 分布式 of java.util.Deque 

  • 分布式 java.util.Map 

  • 分布式 java.util.concurrent.ConcurrentMap 

  • 通过TTL实现可重入 java.util.concurrent.locks.Lock 

  • 分布式 java.util.concurrent.atomic.AtomicLong

  • 分布式 java.util.concurrent.CountDownLatch

  • 通过org.redisson.core.RTopic 实现分布式订阅/发布

  • 通过 org.redisson.core.RHyperLogLog 实现分布式HyperLogLog 

  • 线程安全

  • 支持 OSGi

  • 超过110个单元测试

来自: http://www.oschina.net/news/69765/redisson-2-2-5