Redisson轻松实现分布式集合,分布式锁。
Redisson 是基于Redis服务之上构建的分布式、可伸缩的Java数据结构,高级的Redis客户端。
Redisson 是使用熟悉的Java数据结构来发挥Redis的威力,基于lettuce Redis客户端和Netty 4。
Features
- AWS ElastiCache servers mode:
- automatic new master server discovery
- automatic new slave servers discovery
- Cluster servers mode:
- automatic master and slave servers discovery
- automatic new master server discovery
- automatic new slave servers discovery
- automatic slave servers offline/online discovery
- automatic slots change discovery
- Sentinel servers mode:
- automatic master and slave servers discovery
- automatic new master server discovery
- automatic new slave servers discovery
- automatic slave servers offline/online discovery
- automatic sentinel servers discovery
- Master with Slave servers mode: read data using slave servers, write data using master server
- Single server mode: read and write data using single server
- Lua scripting
- Distributed implementation of
java.util.BitSet
- Distributed implementation of
java.util.List
- Distributed implementation of
java.util.Set
with TTL support for each entry - Distributed implementation of
java.util.SortedSet
- Distributed implementation of
java.util.Queue
- Distributed implementation of
java.util.concurrent.BlockingQueue
- Distributed implementation of
java.util.Deque
- Distributed implementation of
java.util.concurrent.BlockingDeque
- Distributed implementation of
java.util.Map
with TTL support for each entry - Distributed implementation of
java.util.concurrent.ConcurrentMap
with TTL support for each entry - Distributed implementation of reentrant
java.util.concurrent.locks.Lock
with TTL support
- Distributed implementation of reentrant
java.util.concurrent.locks.ReadWriteLock
with TTL support
- Distributed alternative to the
java.util.concurrent.atomic.AtomicLong
- Distributed alternative to the
java.util.concurrent.CountDownLatch
- Distributed alternative to the
java.util.concurrent.Semaphore
- Distributed publish/subscribe messaging via
org.redisson.core.RTopic
- Distributed HyperLogLog via
org.redisson.core.RHyperLogLog
- Asynchronous interface for each object
- Asynchronous connection pool
- Thread-safe implementation
- All commands executes in an atomic way
- Spring cache integration
- Supports Reactive Streams
- Supports Redis pipelining (command batches)
- Supports Android platform
- Supports auto-reconnect
- Supports failed to send command auto-retry
- Supports OSGi
- Supports many popular codecs (Jackson JSON, CBOR, MsgPack, Kryo, FST, LZ4, Snappy and JDK Serialization)
- With over 500 unit tests