Skip to content
railsengines.com

Solid Cache

A database-backed ActiveSupport::Cache::Store

No ratings yet
Gem
solid_cache
Repository
rails/solid_cache
License
MIT
Stars
1,030
Added
August 23, 2026

About

A database-backed ActiveSupport::Cache::Store

Solid Cache is a database-backed Active Support cache store that lets you keep a much larger cache than is typically possible with traditional memory-only Redis or Memcached stores. This is thanks to the speed of modern SSD drives, which make the access-time penalty of using disk vs RAM insignificant for most caching purposes. Simply put, you're now usually better off keeping a huge cache on disk rather than a small cache in memory.

What you get

  • executor - the Rails executor used to wrap asynchronous operations, defaults to the app executor
  • size_estimate_samples - if max_size is set on the cache, the number of the samples used to estimate the size.
  • encrypted - whether cache values should be encrypted (see Enabling encryption)
  • encryption_context_properties - custom encryption context properties

Installing it

ruby
# Gemfile
gem "solid_cache"

Details

1030 stars on GitHub · MIT licensed · maintained by rails. Source: https://github.com/rails/solid_cache

Discussion (0)

Sign in to join the discussion.

No comments yet.