DiskLruCache icon indicating copy to clipboard operation
DiskLruCache copied to clipboard

Java implementation of a Disk-based LRU cache which specifically targets Android compatibility.

Results 23 DiskLruCache issues
Sort by recently updated
recently updated
newest added

I added cache entry creation time param to Snapshot. With this simple feature we can make expiration cache. Example: ` private Bitmap getExpired( String key, long expire, TimeUnit timeUnit )...

I am developing an OpenHarmony application that uses the JavaScript language. Can you support the OpenHarmony JavaScript version? I am willing to participate in the development and look forward to...

Hi, The [executorService](https://github.com/JakeWharton/DiskLruCache/blob/3e016356cfc7e5f9644a7a732fe0223e9742e024/src/main/java/com/jakewharton/disklrucache/DiskLruCache.java#L163) is not shut down in `close()`, so the threads will stay alive and leak resources. `close()` should shut down the Executor.

This deletes all files stored on disk and invalidates any uncommitted editors.

details: at com.jakewharton.disklrucache.Util.deleteContents(Util.java:62) at com.jakewharton.disklrucache.DiskLruCache.delete(DiskLruCache.java:654) at com.jakewharton.disklrucache.DiskLruCache.open(DiskLruCache.java:236) ``` android_ver = 2.3.5, avail_mem = 50.109375M, display = 480x320, start at 2013-11-13T06:30:55.000+08:00, crash at 2013-11-13T07:08:08.000+08:00 ```

I'm seeing unpredictable but consistent corruption of journal files.  The point of corruption is always a READ line in the journal.  I'm trying to wrap my head around how this...

Will it possible to have a new release? I am particularly interested in this commit https://github.com/JakeWharton/DiskLruCache/pull/65 which increases the cache key length to 120.

https://github.com/JakeWharton/DiskLruCache/blob/3e016356cfc7e5f9644a7a732fe0223e9742e024/src/main/java/com/jakewharton/disklrucache/DiskLruCache.java#L95 I came across an exception where my key length exceeded 64 characters, so I was browsing through the repo to figure out a reason for this cap on key...

``File#listFiles()`` will return ``null`` if the directory has been deleted. This scenario isn’t totally far fetched because it’s fairly common for Android developers to place their disk caches in the...

It would be great if we can have a way to know the count of the entities and even better if we can have an iterator of the snapshots like...