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.
Вопрос
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 ?
Решение
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.