class Rack::Cache::MetaStore::GAE
Attributes
Public Class Methods
Source
# File lib/rack/cache/meta_store.rb 412 def initialize(options = {}) 413 require 'rack/cache/app_engine' 414 @cache = Rack::Cache::AppEngine::MemCache.new(options) 415 end
Source
# File lib/rack/cache/meta_store.rb 433 def self.resolve(uri) 434 self.new(:namespace => uri.host) 435 end
Public Instance Methods
Source
# File lib/rack/cache/meta_store.rb 427 def purge(key) 428 key = hexdigest(key) 429 cache.delete(key) 430 nil 431 end
Source
# File lib/rack/cache/meta_store.rb 417 def read(key) 418 key = hexdigest(key) 419 cache.get(key) || [] 420 end
Source
# File lib/rack/cache/meta_store.rb 422 def write(key, entries) 423 key = hexdigest(key) 424 cache.put(key, entries) 425 end