# yangfuhai/ASimpleCache

a simple cache for android and java

Repository: https://github.com/yangfuhai/ASimpleCache
Canonical: https://ross.abutalabs.com/products/asimplecache
Language: Java
License: Apache-2.0
License Family: permissive
Last push: 2020-07-25T03:29:18+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4784, "days_push": 2230, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3656, forks 1229 (observed 2026-08-28T04:08:13.176814+00:00)

## What it is
ASimpleCache is a lightweight open-source caching framework for Android and Java that fits in a single Java file. It caches strings, JSON objects and arrays, bitmaps, drawables, serialized Java objects, and byte data with configurable cache paths, sizes, entry limits, and automatic TTL-based expiry.

## Use cases
- cache http api responses on android with expiry
- replace sharedpreferences for storing config values
- cache  strings and bitmaps to disk
- reduce mobile data usage by caching network content
- cache serialized java objects with timeout
- multi-process key-value caching on android

## When to choose
- you need a tiny, dependency-free disk cache for android or plain java
- you want TTL-based expiry for cached network responses
- you need to cache bitmaps, , or serialized objects with a simple key-value API

## When to avoid
- you need an in-memory LRU cache or advanced eviction policies
- you need encrypted or secure caching
- you want an actively developed library with ongoing updates
- you need caching across a large multi-module codebase with advanced configuration

## Facets
- artifact type: library
- maturity: maintenance
- function: caching, serialization
- domain: mobile-development, android-tools, developer-tools
- platform: jvm
- tags: disk-cache, lightweight, key-value-cache, http-response-caching, single-file-library, android

## Member repositories
- yangfuhai/ASimpleCache (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:13.176814+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-29T18:31:38.655488+00:00, confidence not recorded.
  - readme: https://github.com/yangfuhai/ASimpleCache (fetched 2026-08-28T04:08:13.176814+00:00, sha 7139d94aab87)
- Data as of 2026-08-30T08:39:29.467469+00:00.
