class ActionDispatch::RailsMetaStore
Public Class Methods
new(store = Rails.cache)
click to toggle source
# File lib/action_dispatch/http/rack_cache.rb, line 11 def initialize(store = Rails.cache) @store = store end
resolve(uri)
click to toggle source
# File lib/action_dispatch/http/rack_cache.rb, line 7 def self.resolve(uri) new end
Public Instance Methods
read(key)
click to toggle source
# File 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)
click to toggle source
# File lib/action_dispatch/http/rack_cache.rb, line 23 def write(key, value) @store.write(key, Marshal.dump(value)) end