Rack::Cache::MetaStore::MemCacheBase
# File lib/rack/cache/metastore.rb, line 308 def initialize(server="localhost:11211", options={}) @cache = if server.respond_to?(:stats) server else require 'dalli' ::Dalli::Client.new(server, options) end end
# File lib/rack/cache/metastore.rb, line 328 def purge(key) cache.delete(hexdigest(key)) nil end
# File lib/rack/cache/metastore.rb, line 318 def read(key) key = hexdigest(key) cache.get(key) || [] end
# File lib/rack/cache/metastore.rb, line 323 def write(key, entries) key = hexdigest(key) cache.set(key, entries) end
[Validate]
Generated with the Darkfish Rdoc Generator 2.