class Rack::Cache::MetaStore::GAECACHE
Attributes
cache[R]
Public Class Methods
new(options = {})
click to toggle source
# File lib/rack/cache/meta_store.rb, line 397 def initialize(options = {}) require 'rack/cache/app_engine' @cache = Rack::Cache::AppEngine::MemCache.new(options) end
resolve(uri)
click to toggle source
# File lib/rack/cache/meta_store.rb, line 418 def self.resolve(uri) self.new(:namespace => uri.host) end
Public Instance Methods
purge(key)
click to toggle source
# File lib/rack/cache/meta_store.rb, line 412 def purge(key) key = hexdigest(key) cache.delete(key) nil end
read(key)
click to toggle source
# File lib/rack/cache/meta_store.rb, line 402 def read(key) key = hexdigest(key) cache.get(key) || [] end
write(key, entries)
click to toggle source
# File lib/rack/cache/meta_store.rb, line 407 def write(key, entries) key = hexdigest(key) cache.put(key, entries) end