# JakeWharton/DiskLruCache

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

Repository: https://github.com/JakeWharton/DiskLruCache
Canonical: https://ross.abutalabs.com/products/disklrucache
Homepage: http://jakewharton.github.io/DiskLruCache
Language: Java
License: Apache-2.0
License Family: permissive
Archived: true
Last push: 2020-03-02T13:54:37+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5355, "days_push": 2375, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5771, forks 1162 (observed 2026-08-28T04:09:29.448007+00:00)

## What it is
A Java implementation of a disk-based LRU cache that uses a bounded amount of filesystem space, with entries keyed by strings and values stored as byte streams or files. It specifically targets Android compatibility and provides atomic, journal-backed cache edits and reads.

## Use cases
- cache HTTP responses to disk on Android
- store downloaded images with a size-bounded cache
- persist computed results to the filesystem with automatic eviction
- add a disk LRU cache to a Java or Android app
- evict old cache entries when storage limit is exceeded

## When to choose
- you need a battle-tested disk LRU cache on Android or the JVM
- you want atomic commits and crash-tolerant cache behavior
- you need a small dependency with no transitive requirements

## When to avoid
- you need an in-memory-only cache
- multiple processes must share the same cache directory
- you need keys outside the [a-z0-9_-] format or unbounded value sizes
- you need actively maintained software with recent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, file-system
- domain: mobile-development, developer-tools
- platform: jvm
- tags: disk-cache, lru-cache, android

## Member repositories
- JakeWharton/DiskLruCache (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:29.448007+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:52:54.479828+00:00, confidence not recorded.
  - readme: https://github.com/JakeWharton/DiskLruCache (fetched 2026-08-28T04:09:29.448007+00:00, sha 76f9a05b02d0)
  - homepage: http://jakewharton.github.io/DiskLruCache (fetched 2026-08-29T08:48:11.969977+00:00, sha 345dffda3ab0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
