# rails/solid_cache

A database-backed ActiveSupport::Cache::Store

Repository: https://github.com/rails/solid_cache
Canonical: https://ross.abutalabs.com/products/solid_cache
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-07-31T12:05:27+00:00

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

## Adoption (not part of the score)
Stars 1033, forks 83 (observed 2026-08-28T04:03:18.500720+00:00)

## What it is
Solid Cache is a database-backed ActiveSupport::Cache::Store for Rails that stores cache entries in SQL databases (SQLite, MySQL, PostgreSQL) instead of memory-only stores like Redis or Memcached. It leverages fast SSDs to enable much larger caches with negligible access-time penalty, and ships as the default cache store in Rails 8.

## Use cases
- replace Redis or Memcached with a database-backed Rails cache store
- keep a very large application cache on disk instead of limited RAM
- simplify Rails infrastructure by removing a separate cache server
- configure a production cache store for a new Rails 8 app
- store cache entries in SQLite, MySQL, or PostgreSQL
- set cache size and expiration policies like max_age and max_size

## When to choose
- you run Rails and want a durable, large cache without operating Redis or Memcached
- your cache is bigger than fits comfortably in memory and SSD latency is acceptable
- you want fewer moving parts in your production stack

## When to avoid
- you need microsecond-latency caching for extremely hot keys
- your app is not Ruby on Rails
- you require advanced Redis features like pub/sub or distributed locks from your cache

## Facets
- artifact type: library
- maturity: stable
- function: caching, database
- domain: web-development, backend, databases, developer-tools
- platform: ruby, cross-platform
- tags: rails, active-support, cache-store, sql-backed, disk-cache

## Member repositories
- rails/solid_cache (main) score 82

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:18.500720+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-30T07:06:41.236998+00:00, confidence not recorded.
  - readme: https://github.com/rails/solid_cache (fetched 2026-08-28T04:03:18.500720+00:00, sha 456ccdd0ec8e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
