# pamelafox/lscache

A localStorage-based memcache-inspired client-side caching library.

Repository: https://github.com/pamelafox/lscache
Canonical: https://ross.abutalabs.com/products/lscache
Language: JavaScript
License: NOASSERTION
License Family: other
Last push: 2022-06-07T21:25:35+00:00

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

## Adoption (not part of the score)
Stars 1467, forks 153 (observed 2026-08-28T04:04:48.702817+00:00)

## What it is
A small JavaScript library that emulates memcache-style caching using HTML5 localStorage, with per-item expiration times and automatic eviction of soonest-expiring items when the ~5MB limit is reached. It gracefully degrades to a no-op cache when localStorage is unavailable.

## Use cases
- cache API responses in the browser with expiration
- store data client-side with a TTL
- emulate memcache in localStorage
- partition cached data into buckets
- evict expired cache entries automatically
- check if localStorage is supported before caching

## When to choose
- you need simple client-side caching with expiration in a browser app
- you want a memcache-like API backed by localStorage
- you need graceful fallback when localStorage is unavailable

## When to avoid
- you need caching in Node.js or non-browser environments
- you need more than ~5MB of storage
- you need a modern async cache like IndexedDB or Cache API

## Facets
- artifact type: library
- maturity: maintenance
- function: caching
- domain: web-development, frontend, developer-tools
- platform: browser
- tags: localstorage, memcache, client-side-caching, expiration, browser-storage, javascript

## Member repositories
- pamelafox/lscache (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:48.702817+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-30T04:35:01.289301+00:00, confidence not recorded.
  - readme: https://github.com/pamelafox/lscache (fetched 2026-08-28T04:04:48.702817+00:00, sha 608895fc779a)
  - registry_npm: https://registry.npmjs.org/lscache (fetched 2026-08-29T11:43:29.014980+00:00, sha 14876db09343)
- Data as of 2026-08-30T08:39:29.467469+00:00.
