Rack::Cache::MetaStore::GAEStore

Attributes

cache[R]

Public Class Methods

new(options = {}) click to toggle source
     # File lib/rack/cache/metastore.rb, line 386
386:       def initialize(options = {})
387:         require 'rack/cache/appengine'
388:         @cache = Rack::Cache::AppEngine::MemCache.new(options)
389:       end
resolve(uri) click to toggle source
     # File lib/rack/cache/metastore.rb, line 407
407:       def self.resolve(uri)
408:         self.new(:namespace => uri.host)
409:       end

Public Instance Methods

purge(key) click to toggle source
     # File lib/rack/cache/metastore.rb, line 401
401:       def purge(key)
402:         key = hexdigest(key)
403:         cache.delete(key)
404:         nil
405:       end
read(key) click to toggle source
     # File lib/rack/cache/metastore.rb, line 391
391:       def read(key)
392:         key = hexdigest(key)
393:         cache.get(key) || []
394:       end
write(key, entries) click to toggle source
     # File lib/rack/cache/metastore.rb, line 396
396:       def write(key, entries)
397:         key = hexdigest(key)
398:         cache.put(key, entries)
399:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.