Source: Cacheonix Blog

Cacheonix Blog Using Distributed ConcurrentHashMap

Before, if you wanted to make atomic modifications to the distributed hash table provided by Cacheonix, you could use the distributed locks, such as in the example below: Cacheonix cacheonix = Cacheonix.getInstance(); ReadWriteLock readWriteLock = cacheonix.getCluster().getReadWriteLock(); Map map = cacheonix.getCache(mapName); Lock lock = readWriteLock.writeLock(); lock.lock(); try { if (!map.containsKey(key)) { return map.put(key, value); } else [...]

Read full article »
Est. Annual Revenue
$5.0-25M
Est. Employees
100-250
CEO Avatar

CEO

Update CEO

CEO Approval Rating

- -/100