# File lib/rack/cache/metastore.rb, line 378 def initialize(options = {}) require 'rack/cache/appengine' @cache = Rack::Cache::AppEngine::MemCache.new(options) end
# File lib/rack/cache/metastore.rb, line 399 def self.resolve(uri) self.new(:namespace => uri.host) end
# File lib/rack/cache/metastore.rb, line 393 def purge(key) key = hexdigest(key) cache.delete(key) nil end
# File lib/rack/cache/metastore.rb, line 383 def read(key) key = hexdigest(key) cache.get(key) || [] end
# File lib/rack/cache/metastore.rb, line 388 def write(key, entries) key = hexdigest(key) cache.put(key, entries) end