# jmdobry/angular-cache

angular-cache is a very useful replacement for the Angular 1 $cacheFactory.

Repository: https://github.com/jmdobry/angular-cache
Canonical: https://ross.abutalabs.com/products/angular-cache
Homepage: http://jmdobry.github.io/angular-cache
Language: JavaScript
License: MIT
License Family: permissive
Last push: 2017-02-28T05:12:55+00:00

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

## Adoption (not part of the score)
Stars 1371, forks 152 (observed 2026-08-28T04:04:32.064735+00:00)

## What it is
angular-cache is a JavaScript library that replaces Angular 1's $cacheFactory with a more feature-rich caching solution supporting localStorage/sessionStorage, time-based expiration, LRU eviction, and expiration callbacks. It integrates with $http for caching API responses.

## Use cases
- cache HTTP responses in an Angular 1 app
- persist cache items to localStorage across page refreshes
- expire cached items after a time-to-live
- limit cache size with LRU eviction
- run a callback when a cached item expires

## When to choose
- you maintain a legacy Angular 1 application needing richer caching than $cacheFactory
- you need time-based expiration or persistent browser storage caching in AngularJS

## When to avoid
- you use Angular 2+ or any modern framework
- you are starting a new project - the library is unmaintained since 2017

## Facets
- artifact type: library
- maturity: abandoned
- function: caching
- domain: web-development, frontend
- platform: browser
- tags: angularjs, cache-factory, localstorage, lru, expiration, nodejs

## Member repositories
- jmdobry/angular-cache (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:32.064735+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:40:50.661603+00:00, confidence not recorded.
  - readme: https://github.com/jmdobry/angular-cache (fetched 2026-08-28T04:04:32.064735+00:00, sha 946a327d4533)
  - homepage: http://jmdobry.github.io/angular-cache (fetched 2026-08-29T11:57:51.000452+00:00, sha 2fb3a910983b)
  - registry_npm: https://registry.npmjs.org/angular-cache (fetched 2026-08-29T11:57:51.003432+00:00, sha 521bbb514404)
- Data as of 2026-08-30T08:39:29.467469+00:00.
