Reputation: 11645
In the API of Google Developer there is a trimToSize() Method, that I can't find / use. How do I clear or reduze the size of my LRU Cache ?
Upvotes: 3
Views: 6689
Reputation: 11357
public final void evictAll ()
Added in API level 12
Clear the cache, calling entryRemoved(boolean, K, V, V)
on each removed entry.
Use this method.
Upvotes: 10