Recyclable cache keys in Rails
06-Aug-2019 1630
Recyclable cache keys or cache versioning was introduced in Rails 5.2. Large applications frequently need to invalidate their cache because cache store has limited memory. We can optimize cache storage and minimize cache miss using recyclable cache keys.Recyclable cache keys is supported by all cache stores that ship with Rails.Before Rails 5.2, cache_key’s format was {model_name}/{id}-{update_at}. Here model_name and id are always constant for an object and updated_at changes on every update.
Recyclable cache keys in Rails #ruby #rubydeveloper #rubyonrails #Recyclable #cache #Rails https://rubyonrails.ba/link/recyclable-cache-keys-in-rails