read

A quick note that if you are using DiskLruCache for disk caching, the delete() method actually closes the cache first and then deletes the contents of the directory.

If you would like to simply clear the cache without closing it, use the deleteContents() method which takes the cache directory as a parameter.

Blog Logo

Alvin Zhang

I started writing code in 1998 when I tried to make new in-game units for an amazing RTS game called Total annihilation. Today I run Red Airship and am on a quest to cook good paella.


Published

Image

1998 Nineteen-Ninety-Eight

Thoughts, stories and ideas.

Back to Overview