class Rack::Cache::MetaStore::GAEStore
Attributes
Public Class Methods
Source
# File lib/rack/cache/meta_store.rb, line 411 def initialize(options = {}) require 'rack/cache/app_engine' @cache = Rack::Cache::AppEngine::MemCache.new(options) end
Source
# File lib/rack/cache/meta_store.rb, line 432 def self.resolve(uri) self.new(:namespace => uri.host) end
Public Instance Methods
Source
# File lib/rack/cache/meta_store.rb, line 426 def purge(key) key = hexdigest(key) cache.delete(key) nil end
Source
# File lib/rack/cache/meta_store.rb, line 416 def read(key) key = hexdigest(key) cache.get(key) || [] end
Source
# File lib/rack/cache/meta_store.rb, line 421 def write(key, entries) key = hexdigest(key) cache.put(key, entries) end