I\'m looking to implement a simple cache without doing too much work (naturally). It seems to me that one of the standard Java collections ought to suffice, with a little extra
For synchronization, the Collections framework provides a synchronized map:
Map myMap = Collections.synchronizedMap(new HashMap());
You could then wrap this, or handle the LRU logic in a cache object.