JakeWharton / DiskLruCache

Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.
http://jakewharton.github.io/DiskLruCache
Apache License 2.0
5.79k stars 1.18k forks source link

I get this error: "Newly created entry didn't create value for index 1" #45

Closed norman784 closed 10 years ago

norman784 commented 11 years ago

Hi

I don't understand well the way that DiskLruCache works but I got this error after doing a commit on the editor. The code I followed wrap DiskLruCache was on StackOverflow

Regards

cloudec commented 11 years ago

Please check the open function static DiskLruCache open(File directory, int appVersion, int valueCount, long maxSize), The 3rd parameter is valueCount, not entryCount.