code: public synchronized void accept(CacheVisitor<K,V> visitor) {
          expungeExpiredEntries();
          Map<K,V> cached = getCachedEntries();
  
          visitor.visit(cached);
      }
docs: it is a heavyweight method.