Parent

Class Index [+]

Quicksearch

ActionDispatch::RailsEntityStore

Constants

RAILS

Public Class Methods

new(store = RAILS_CACHE) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 36
36:     def initialize(store = RAILS_CACHE)
37:       @store = store
38:     end
resolve(uri) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 32
32:     def self.resolve(uri)
33:       new
34:     end

Public Instance Methods

exist?(key) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 40
40:     def exist?(key)
41:       @store.exist?(key)
42:     end
open(key) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 44
44:     def open(key)
45:       @store.read(key)
46:     end
read(key) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 48
48:     def read(key)
49:       body = open(key)
50:       body.join if body
51:     end
write(body) click to toggle source
    # File lib/action_dispatch/http/rack_cache.rb, line 53
53:     def write(body)
54:       buf = []
55:       key, size = slurp(body) { |part| buf << part }
56:       @store.write(key, buf)
57:       [key, size]
58:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.