This document introduces Redisson, an open source Redis client that provides Java data structures and distributed objects on top of Redis. It summarizes Redisson's features such as distributed collections like maps, sets, queues and locks. It also covers how to start using Redisson through its asynchronous, reactive and low-level Redis client APIs and lists some companies that use Redisson.
5. MAP
ConcurrentMap<Integer, MyObject> map = new ConcurrentHashMap<>();
map.put(20, new MyObject("oldobj"));
map.putIfAbsent(20, new MyObject("newobj"));
map.containsKey(1);
6. REDISSON MAP
ConcurrentMap<Integer, MyObject> map = redisson.getMap("someMap");
map.put(20, new MyObject("oldobj"));
map.putIfAbsent(20, new MyObject("newobj"));
map.containsKey(1);