Redis 客戶端,Redisson 2.2.5 發布
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