Class: RailsNamedCache::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/rails_named_cache/railtie.rb

Overview

Wires the gem into the Rails boot process.

Adds config.named_cache_stores (default {}) and fills the Registry from it once, after config/initializers have run and before eager loading, so eager-loaded code can already call Rails.cache(:name).