MCPcopy Index your code
hub / github.com/HtmlUnit/htmlunit / clear

Method clear

src/main/java/org/htmlunit/Cache.java:407–416  ·  view source on GitHub ↗

Clears the cache.

()

Source from the content-addressed store, hash-verified

405 * Clears the cache.
406 */
407 public void clear() {
408 synchronized (entries_) {
409 for (final Entry entry : entries_.values()) {
410 if (entry.response_ != null) {
411 entry.response_.cleanUp();
412 }
413 }
414 entries_.clear();
415 }
416 }
417
418 /**
419 * Removes outdated entries from the cache.

Callers 6

cleanUpOnClearMethod · 0.95
initMediaResourcesMethod · 0.45
addPageMethod · 0.45
clearCookiesMethod · 0.45
closeMethod · 0.45

Calls 2

cleanUpMethod · 0.65
valuesMethod · 0.45

Tested by 1

cleanUpOnClearMethod · 0.76