ActionDispatch::RailsEntityStore Ruby on Rails 5.1.2 Class ActionDispatch::RailsEntityStore < Rack::Cache::EntityStore actionpack/lib/action_dispatch/http/rack_cache.rb Namespace MODULE ActionDispatch::RailsEntityStore::Rack Methods E exist? N new O open 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 35 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 31 def self.resolve(uri) new end Instance Public methods exist?(key) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 39 def exist?(key) @store.exist?(key) end open(key) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 43 def open(key) @store.read(key) end read(key) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 47 def read(key) body = open(key) body.join if body end write(body) Link Source: show | on GitHub # File actionpack/lib/action_dispatch/http/rack_cache.rb, line 52 def write(body) buf = [] key, size = slurp(body) { |part| buf << part } @store.write(key, buf) [key, size] end