ActionDispatch::RailsMetaStore Ruby on Rails 5.1.2 Class ActionDispatch::RailsMetaStore < Rack::Cache::MetaStore actionpack/lib/action_dispatch/http/rack_cache.rb Namespace MODULE ActionDispatch::RailsMetaStore::Rack Methods N new R read, resolve W write Class Public methods new(store = Rails.cache) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 11 def initialize(store = Rails.cache) @store = store end resolve(uri) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 7 def self.resolve(uri) new end Instance Public methods read(key) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 15 def read(key) if data = @store.read(key) Marshal.load(data) else [] end end write(key, value) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 23 def write(key, value) @store.write(key, Marshal.dump(value)) end