class Sprockets::Cache::GetWrapper

Public Instance Methods

clear(options=nil) click to toggle source
# File lib/sprockets/cache.rb, line 229
def clear(options=nil)
  # dalli has a #flush method so try it
  if cache.respond_to?(:flush)
    cache.flush(options)
  else
    cache.clear(options)
  end
  true
end
get(key) click to toggle source
# File lib/sprockets/cache.rb, line 221
def get(key)
  cache.get(key)
end
set(key, value) click to toggle source
# File lib/sprockets/cache.rb, line 225
def set(key, value)
  cache.set(key, value)
end