Class: Sprockets::Cache::ReadWriteWrapper
- Defined in:
- lib/sprockets/cache.rb
Instance Method Summary collapse
Instance Method Details
#clear(options = nil) ⇒ Object
265 266 267 268 |
# File 'lib/sprockets/cache.rb', line 265 def clear(=nil) cache.clear() true end |
#get(key) ⇒ Object
257 258 259 |
# File 'lib/sprockets/cache.rb', line 257 def get(key) cache.read(key) end |
#set(key, value) ⇒ Object
261 262 263 |
# File 'lib/sprockets/cache.rb', line 261 def set(key, value) cache.write(key, value) end |