# Solid Cache

> A database-backed ActiveSupport::Cache::Store

Source: https://talira.ai/catalog/solid-cache-ptactzqr
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / caching](https://talira.ai/categories/libraries/caching), [languages / ruby / rails](https://talira.ai/categories/languages/ruby/rails)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^2]
- Backed by: [37signals](https://talira.ai/orgs/37signals.md), [Ruby on Rails](https://talira.ai/orgs/ruby-on-rails.md)
- Creator: Donal McBreen
- Funding: bootstrapped[^3][^4][^5]

Solid Cache is a [Rails](https://talira.ai/catalog/ruby-on-rails-xkdcpj5k.md) cache store that keeps the cache in a SQL database ([PostgreSQL](https://talira.ai/catalog/postgresql-cm55wcnd.md), [MySQL](https://talira.ai/catalog/mysql-dy4scprm.md) or [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md)) instead of memory, so it can hold a far larger cache on cheap SSD storage than [Redis](https://talira.ai/catalog/redis-v917j45s.md) or Memcached would. It's the default cache store in new Rails 8 apps, with a cache database of its own, expiry by age or size done in the background as it writes, sharding across databases and encryption. 37signals built it for Basecamp and HEY, where the cache is six times larger than the old Redis cache on storage that costs 80% less, with reads about 40% slower.

## Links

- GitHub: https://github.com/rails/solid_cache

## Problems it solves

- our Redis cache is expensive and only holds a few days of fragments
- cache weeks of rendered fragments instead of hours by keeping the cache on disk
- run caching in a Rails app without operating Redis or Memcached
- what cache store does a new Rails 8 app use by default
- a cache on SQLite for a small Rails app on one server
- spread a large cache across several databases
- encrypt cached data at rest because it may contain personal information
- expire cache entries by age and by total size without a cron job

## Features

- Active Support cache store backed by MySQL, PostgreSQL or SQLite
- default cache store in Rails 8
- separate cache database
- expiry by max age and max size, run in the background
- sharding across databases
- encryption
- installer that writes config/cache.yml and the schema

## Trust

Overall: 0.53 out of 1.
Signals: backing 0.95, extensibility 0.00.

- backed by 37signals and Ruby on Rails
- created by Donal McBreen
- funding: bootstrapped
- used by Basecamp, HEY

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [Memcached](https://talira.ai/catalog/memcached-qjqvpryd.md): A high performance multithreaded event-based key/value cache store intended to be used in a distributed system.
- [Redis](https://talira.ai/catalog/redis-v917j45s.md): The preferred, fastest, and most feature-rich cache, data structure server, and document and vector query engine

## Sources

[^1]: https://github.com/rails/solid_cache/blob/main/MIT-LICENSE (checked 21 Nov 2026)
[^2]: https://github.com/rails/solid_cache (checked 21 Nov 2026)
[^3]: https://37signals.com/01 (checked 21 Nov 2026)
[^4]: https://37signals.com/jobs (checked 21 Nov 2026)
[^5]: https://basecamp.com/pricing (checked 21 Nov 2026)
