class Rack::Cache::MetaStore::MONETA

@api public

Public Class Methods

new(cache) click to toggle source
# File lib/rack/cache/moneta.rb, line 40
def initialize(cache)
  @cache = cache
end

Public Instance Methods

purge(key) click to toggle source
# File lib/rack/cache/moneta.rb, line 52
def purge(key)
  @cache.delete(key)
  nil
end
read(key) click to toggle source
# File lib/rack/cache/moneta.rb, line 44
def read(key)
  @cache[key] || []
end
write(key, entries) click to toggle source
# File lib/rack/cache/moneta.rb, line 48
def write(key, entries)
  @cache[key] = entries
end