Redisson 入门教程
2018年5月24日小于 1 分钟
Redisson
Redisson - distributed Java objects and services (Set, Multimap, SortedSet,
Map, List, Queue, BlockingQueue, Deque, BlockingDeque, Semaphore, Lock, AtomicLong,
Map Reduce, Publish / Subscribe, Bloom filter, Spring Cache, Executor service,
Tomcat Session Manager, Scheduler service, JCache API) on top of Redis server.
State of the Art Redis client
Quick Start
jar 引入
org.redisson
redisson
3.7.0
Hello World
public static void main(String[] args) throws IOException {
RedissonClient redisson = Redisson.create();
RBucket bucket = redisson.getBucket("anyObject");
bucket.set("hello");
String obj = bucket.get();
System.out.println(obj);
}
贡献者
binbin.hou