MCPcopy Index your code
hub / github.com/wyouflf/xUtils3 / evictAll

Method evictAll

xutils/src/main/java/org/xutils/cache/LruCache.java:270–272  ·  view source on GitHub ↗

Clear the cache, calling #entryRemoved on each removed entry.

()

Source from the content-addressed store, hash-verified

268 * Clear the cache, calling {@link #entryRemoved} on each removed entry.
269 */
270 public final void evictAll() {
271 trimToSize(-1); // -1 will evict 0-sized elements
272 }
273
274 /**
275 * For caches that do not override {@link #sizeOf}, this returns the number

Callers 1

clearMemCacheMethod · 0.80

Calls 1

trimToSizeMethod · 0.95

Tested by

no test coverage detected