class Sprockets::Cache::GetWrapper

Public Instance Methods

clear(options=nil) click to toggle source
# File lib/sprockets/cache.rb, line 230
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 222
def get(key)
  cache.get(key)
end
set(key, value) click to toggle source
# File lib/sprockets/cache.rb, line 226
def set(key, value)
  cache.set(key, value)
end