Shopify/identity_cache
IdentityCache is a blob level caching solution to plug into Active Record. Don't #find, #fetch! observed · 2026-08-28
Health v2 · maintenance only
88/100
- Activity 99
- Release rhythm 67
- 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: 227
- age_days: 4934
- days_rel: 8
- days_push: 9
- n_releases_24m: 4
Adoption not part of the score
1968 stars · 174 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
IdentityCache is a Ruby gem that adds opt-in, read-through blob caching to Active Record models, backed by Memcached. It lets you fetch records via cache indexes instead of database queries and automatically expires cached objects on changes via after_commit hooks.
Use cases
- cache active record models in memcached
- reduce database load for hot reads in rails
- fetch records by secondary index without hitting the database
- embed associations in cached parent objects
- speed up high-traffic rails read paths
When to choose
- you run a Rails app with heavy read traffic on Active Record models
- you already use Memcached and want model-level read-through caching
- you want automatic cache invalidation tied to record commits
When to avoid
- you don't use Rails or Active Record
- you need write-heavy workloads where invalidation overhead dominates
- you have no Memcached or compatible cache backend available
Facets
library · maturity stable
caching orm database web-development databases backend performance ruby activerecord memcached read-through-cache rails shopify web-server
2 sources
- readme: https://github.com/Shopify/identity_cache · fetched 2026-08-28 · a45bff607813
- homepage: http://shopify.github.io/identity_cache · fetched 2026-08-29 · d185af1dee54
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| Shopify/identity_cache | main | 88 |
For agents
markdown · JSON · MCP: product_card(name="Shopify/identity_cache")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem