Class: Sprockets::Cache::HashWrapper

Inherits:
Wrapper
  • Object
show all
Defined in:
lib/sprockets/cache.rb

Instance Method Summary collapse

Instance Method Details

#clear(options = nil) ⇒ Object



250
251
252
253
# File 'lib/sprockets/cache.rb', line 250

def clear(options=nil)
  cache.clear
  true
end

#get(key) ⇒ Object



242
243
244
# File 'lib/sprockets/cache.rb', line 242

def get(key)
  cache[key]
end

#set(key, value) ⇒ Object



246
247
248
# File 'lib/sprockets/cache.rb', line 246

def set(key, value)
  cache[key] = value
end