Parent

Class Index [+]

Quicksearch

ActionDispatch::RailsMetaStore

Constants

RAILS

Public Class Methods

new(store = RAILS_CACHE) click to toggle source

TODO: Finally deal with the RAILS_CACHE global

    # File lib/action_dispatch/http/rack_cache.rb, line 12
12:     def initialize(store = RAILS_CACHE)
13:       @store = store
14:     end
resolve(uri) click to toggle source
   # File lib/action_dispatch/http/rack_cache.rb, line 7
7:     def self.resolve(uri)
8:       new
9:     end

Public Instance Methods

read(key) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 16
16:     def read(key)
17:       if data = @store.read(key)
18:         Marshal.load(data)
19:       else
20:         []
21:       end
22:     end
write(key, value) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 24
24:     def write(key, value)
25:       @store.write(key, Marshal.dump(value))
26:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.