<dependency>
<groupId>com.googlecode.concurrentlinkedhashmap</groupId>
<artifactId>concurrentlinkedhashmap-lru</artifactId>
<version>1.4.3</version>
</dependency>
import com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap;
public class CacheManager {
public CacheManager() {
cache = new ConcurrentLinkedHashMap.Builder<String, Object>()
.maximumWeightedCapacity(MAX_ENTRIES)
.build();
}
public void put(String key, Object value) {
}
public Object get(String key) {
}
public void remove(String key) {
}
public void clear() {
}
}