- Fix: Prevent exception trying to delete a non-existent file.
- Fix: Do not throw runtime exceptions for racy file I/O.
- Fix: Synchronize calls to
isClosed
.
The package name is now com.jakewharton.disklrucache
.
- New: Automatically flush the cache when an edit is completed.
- Fix: Ensure file handles are not held when a file is not found.
- Fix: Correct journal rebuilds on Windows.
- Fix: Ensure file writer uses the appropriate encoding.
- Fix: Correct logic around detecting whether a journal rebuild is required. (Thanks Jonathan Gerbaud)
- Re-allow dash in cache key (now
[a-z0-9_-]{1,64}
). - New:
getLength
method onSnapshot
. (Thanks Edward Dale) - Performance improvements reading journal lines.
- Fix: Ensure library references Java 5-compatible version of
Arrays.copyOfRange
. (Thanks Edward Dale)
- New API for cache size adjustment.
- Keys are now enforced to match
[a-z0-9_]{1,64}
(Thanks Brian Langel) - Fix: Cache will gracefully recover if directory is deleted at runtime.
- New API for editing an existing snapshot. (Thanks Jesse Wilson)
Initial version.