Methods
N
R
W
Constants
RAILS = self
 
Class Public methods
new(store = RAILS_CACHE)

TODO: Finally deal with the RAILS_CACHE global

# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 12
def initialize(store = RAILS_CACHE)
  @store = store
end
resolve(uri)
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 7
def self.resolve(uri)
  new
end
Instance Public methods
read(key)
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 16
def read(key)
  if data = @store.read(key)
    Marshal.load(data)
  else
    []
  end
end
write(key, value)
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 24
def write(key, value)
  @store.write(key, Marshal.dump(value))
end