Solid Cache
03-Oct-2023 1063
We’ve just open-sourced Solid Cache, a new ActiveRecord::Cache::Store that we use in Basecamp and HEY.Solid Cache uses a SQL database as its cache store. We get a much larger cache at a fraction of the storage costs of memory caches like Redis or Memcached. For us, that’s a cache size of months rather than days.While memory access is many times faster than disk, it only accounts for a fraction of cache operation time — there’s also network time, serialization and compression.In any case, usually we won’t need to go to disk, as databases contain built-in memory caches.
Solid Cache #ruby #rubydeveloper #rubyonrails #Solid #Cache https://rubyonrails.ba/link/solid-cache