whitfin/cachex
A powerful caching library for Elixir with support for transactions, fallbacks and expirations observed · 2026-08-28
Health v2 · maintenance only
65/100
- Activity 66
- Release rhythm 44
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 34.5
- age_days: 3852
- days_rel: 295
- days_push: 204
- n_releases_24m: 7
Adoption not part of the score
1744 stars · 125 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
Cachex is a fast in-memory key/value caching library for Elixir with optional features like TTL expiration, size limits, transactions, hooks, and node distribution. It integrates into OTP supervision trees and all features are opt-in.
Use cases
- cache expensive function results in memory
- add TTL-based expiration to cached values
- limit cache memory with max size protection
- share cache state across cluster nodes
- warm caches proactively or reactively
- run transactional cache operations with row locking
- gather statistics on cache hit rates
When to choose
- you need a battle-tested in-memory cache for an Elixir/Erlang application
- you want optional features like transactions, fallbacks, and expiration in one library
- you need distributed caching across BEAM nodes
When to avoid
- you need a persistent or disk-backed cache as the primary store
- you need a multi-language distributed cache like Redis
- your project is not on the BEAM platform
Facets
library · maturity stable
caching backend performance microservices elixir jvm in-memory-cache key-value-store ttl-expiration cache-warming transactions otp
2 sources
- readme: https://github.com/whitfin/cachex · fetched 2026-08-28 · c64dce9461ba
- homepage: https://hexdocs.pm/cachex/ · fetched 2026-08-29 · ce6396a6a130
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| whitfin/cachex | main | 65 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem