# jaemk/cached

Rust cache structures and easy function memoization

Repository: https://github.com/jaemk/cached
Canonical: https://ross.abutalabs.com/products/cached
Language: Rust
License: MIT
License Family: permissive
Topics: rust, cache, caching, lrucache, rustlang, memoization, rust-caching
Last push: 2026-08-25T23:22:26+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 100
- inputs: {"age_days": 3440, "days_push": 8, "days_rel": 7, "gap_med": 0.0, "n_releases_24m": 33}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2078, forks 109 (observed 2026-08-28T04:06:11.382641+00:00)

## What it is
A Rust library providing generic caching structures (LRU, Redis, disk-backed stores) and macros for easy function memoization. It supports both synchronous and asynchronous memoized functions with configurable write synchronization.

## Use cases
- memoize expensive function calls in Rust
- add an LRU cache to my Rust application
- cache function results across processes with Redis
- cache results to disk in Rust
- memoize async functions
- avoid recomputing results for repeated arguments

## When to choose
- you need drop-in function memoization in Rust with a macro
- you want multiple backing stores (in-memory, Redis, disk) behind one API
- you need thread-safe caching with configurable concurrency semantics

## When to avoid
- you need a distributed cache cluster rather than a client library
- you want a language-agnostic caching proxy like Redis or Memcached itself
- your project must compile on Rust versions older than 1.92

## Facets
- artifact type: library
- maturity: stable
- function: caching
- domain: developer-tools, performance
- platform: rust
- tags: memoization, lru-cache, redis-cache, disk-cache, proc-macros, async

## Member repositories
- jaemk/cached (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:11.382641+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-30T02:56:07.449004+00:00, confidence not recorded.
  - readme: https://github.com/jaemk/cached (fetched 2026-08-28T04:06:11.382641+00:00, sha aec42718b842)
  - registry_crates: https://crates.io/api/v1/crates/cached (fetched 2026-08-29T10:36:14.790956+00:00, sha ed195c942af2)
- Data as of 2026-08-30T08:39:29.467469+00:00.
