/** * Refresh the cache. Any existing entries in the cache will be re-fetched after it is cleared. */ public void refresh() { synchronized (map) { Set<KEY> contents = new HashSet<>(map.keySet()); clear(); for (KEY key : contents) { internalGet(key); } } }