Namespace

Module

Methods

Class Public methods

new(store = Rails.cache)

📝 Source code
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 13
    def initialize(store = Rails.cache)
      @store = store
    end
🔎 See on GitHub

resolve(uri)

📝 Source code
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 9
    def self.resolve(uri)
      new
    end
🔎 See on GitHub

Instance Public methods

read(key)

📝 Source code
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 17
    def read(key)
      if data = @store.read(key)
        Marshal.load(data)
      else
        []
      end
    end
🔎 See on GitHub

write(key, value)

📝 Source code
# File actionpack/lib/action_dispatch/http/rack_cache.rb, line 25
    def write(key, value)
      @store.write(key, Marshal.dump(value))
    end
🔎 See on GitHub