Class: ActionDispatch::RailsMetaStore
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Rack::Cache::MetaStore
|
|
Instance Chain:
self,
Rack::Cache::MetaStore
|
|
Inherits: |
Rack::Cache::MetaStore
|
Defined in: | actionpack/lib/action_dispatch/http/rack_cache.rb |
Class Method Summary
Instance Method Summary
Constructor Details
.new(store = Rails.cache) ⇒ RailsMetaStore
Class Method Details
.resolve(uri)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 13
def self.resolve(uri) new end
Instance Method Details
#read(key)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 21
def read(key) if data = @store.read(key) Marshal.load(data) else [] end end
#write(key, value)
[ GitHub ]# File 'actionpack/lib/action_dispatch/http/rack_cache.rb', line 29
def write(key, value) @store.write(key, Marshal.dump(value)) end